Implement comprehensive mobile experience framework for entire application
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user