mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +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.
|
||||
*/
|
||||
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').remove();
|
||||
|
||||
|
@ -482,6 +485,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
|
||||
_setCalendarSize();
|
||||
Backend.placeFooterToBottom();
|
||||
|
||||
// Activate calendar navigation.
|
||||
$('#calendar .calendar-header .btn').removeClass('disabled').prop('disabled', false)
|
||||
})
|
||||
.fail(GeneralFunctions.ajaxFailureHandler);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue