mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
The date navigation buttons need to be disabled while the table is rendering.
This commit is contained in:
parent
9b6bdc1bd6
commit
4d01b2c871
1 changed files with 6 additions and 0 deletions
|
@ -454,6 +454,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
* @param {Date} endDate End date to be displayed.
|
* @param {Date} endDate End date to be displayed.
|
||||||
*/
|
*/
|
||||||
function _createView(startDate, endDate) {
|
function _createView(startDate, endDate) {
|
||||||
|
// Disable date navigation.
|
||||||
|
$('#calendar .calendar-header .btn').addClass('disabled').prop('disabled', true);
|
||||||
|
|
||||||
$('#calendar .calendar-view table').stickyTableHeaders('destroy');
|
$('#calendar .calendar-view table').stickyTableHeaders('destroy');
|
||||||
$('#calendar .calendar-view').remove();
|
$('#calendar .calendar-view').remove();
|
||||||
|
|
||||||
|
@ -482,6 +485,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
|
|
||||||
_setCalendarSize();
|
_setCalendarSize();
|
||||||
Backend.placeFooterToBottom();
|
Backend.placeFooterToBottom();
|
||||||
|
|
||||||
|
// Activate calendar navigation.
|
||||||
|
$('#calendar .calendar-header .btn').removeClass('disabled').prop('disabled', false)
|
||||||
})
|
})
|
||||||
.fail(GeneralFunctions.ajaxFailureHandler);
|
.fail(GeneralFunctions.ajaxFailureHandler);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue