The date navigation buttons need to be disabled while the table is rendering.

This commit is contained in:
alext 2016-11-06 11:44:32 +01:00
parent 9b6bdc1bd6
commit 4d01b2c871
1 changed files with 6 additions and 0 deletions

View File

@ -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);
} }