Implement comprehensive mobile experience framework for entire application

This commit is contained in:
Eric Gullickson
2025-07-27 21:03:06 -05:00
parent f46d471453
commit ea055f1c38
20 changed files with 713 additions and 174 deletions

View File

@@ -1,9 +1,26 @@
// Initialize reminder record modal for mobile (using shared mobile framework)
function initializeReminderRecordMobile() {
initMobileModal({
modalId: '#reminderRecordModal',
dateInputId: '#reminderDate',
tagSelectorId: '#reminderRecordTag'
});
// Handle desktop initialization
if (!isMobileDevice()) {
initDatePicker($('#reminderDate'), true);
initTagSelector($("#reminderRecordTag"));
}
}
function showEditReminderRecordModal(reminderId) {
$.get(`/Vehicle/GetReminderRecordForEditById?reminderRecordId=${reminderId}`, function (data) {
if (data) {
$("#reminderRecordModalContent").html(data);
initDatePicker($('#reminderDate'), true);
initTagSelector($("#reminderRecordTag"));
// Initialize mobile experience using shared framework
initializeReminderRecordMobile();
$("#reminderRecordModal").modal("show");
$('#reminderRecordModal').off('shown.bs.modal').on('shown.bs.modal', function () {
if (getGlobalConfig().useMarkDown) {