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,10 +1,26 @@
// Initialize tax record modal for mobile (using shared mobile framework)
function initializeTaxRecordMobile() {
initMobileModal({
modalId: '#taxRecordModal',
dateInputId: '#taxRecordDate',
tagSelectorId: '#taxRecordTag'
});
// Handle desktop initialization
if (!isMobileDevice()) {
initDatePicker($('#taxRecordDate'));
initTagSelector($("#taxRecordTag"));
}
}
function showAddTaxRecordModal() {
$.get('/Vehicle/GetAddTaxRecordPartialView', function (data) {
if (data) {
$("#taxRecordModalContent").html(data);
//initiate datepicker
initDatePicker($('#taxRecordDate'));
initTagSelector($("#taxRecordTag"));
// Initialize mobile experience using shared framework
initializeTaxRecordMobile();
$('#taxRecordModal').modal('show');
}
});
@@ -25,9 +41,10 @@ function showEditTaxRecordModal(taxRecordId, nocache) {
$.get(`/Vehicle/GetTaxRecordForEditById?taxRecordId=${taxRecordId}`, function (data) {
if (data) {
$("#taxRecordModalContent").html(data);
//initiate datepicker
initDatePicker($('#taxRecordDate'));
initTagSelector($("#taxRecordTag"));
// Initialize mobile experience using shared framework
initializeTaxRecordMobile();
$('#taxRecordModal').modal('show');
bindModalInputChanges('taxRecordModal');
$('#taxRecordModal').off('shown.bs.modal').on('shown.bs.modal', function () {