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