Remove footer position adjustments (not needed any more)

This commit is contained in:
Alex Tselegidis 2022-12-21 19:18:35 +01:00
parent f23c9aad49
commit d19e8a3f84

View file

@ -818,7 +818,6 @@ App.Utils.CalendarDefaultView = (function () {
'function': undoFunction 'function': undoFunction
} }
]); ]);
$footer.css('position', 'static'); // Footer position fix.
// Update the event data for later use. // Update the event data for later use.
info.event.setProp('data', info.event.extendedProps.data); info.event.setProp('data', info.event.extendedProps.data);
@ -863,8 +862,6 @@ App.Utils.CalendarDefaultView = (function () {
} }
]); ]);
$footer.css('position', 'static'); // Footer position fix.
// Update the event data for later use. // Update the event data for later use.
info.event.setProp('data', info.event.extendedProps.data); info.event.setProp('data', info.event.extendedProps.data);
}; };
@ -974,8 +971,6 @@ App.Utils.CalendarDefaultView = (function () {
'function': undoFunction 'function': undoFunction
} }
]); ]);
$footer.css('position', 'static'); // Footer position fix.
}; };
// Update appointment data. // Update appointment data.
@ -1017,8 +1012,6 @@ App.Utils.CalendarDefaultView = (function () {
function: undoFunction function: undoFunction
} }
]); ]);
$footer.css('position', 'static'); // Footer position fix.
}; };
App.Http.Calendar.saveUnavailability(unavailability, successCallback); App.Http.Calendar.saveUnavailability(unavailability, successCallback);
@ -1734,11 +1727,6 @@ App.Utils.CalendarDefaultView = (function () {
$('#calendar-actions button').prop('disabled', true); $('#calendar-actions button').prop('disabled', true);
} }
// Fine tune the footer's position only for this page.
if (window.innerHeight < 700) {
$footer.css('position', 'static');
}
// Automatically refresh the calendar page every 10 seconds (without loading animation). // Automatically refresh the calendar page every 10 seconds (without loading animation).
setInterval(() => { setInterval(() => {
if ($('.popover').length) { if ($('.popover').length) {