From 4d01b2c8711bcc396f2c61b25a8dfc41196e095d Mon Sep 17 00:00:00 2001 From: alext Date: Sun, 6 Nov 2016 11:44:32 +0100 Subject: [PATCH] The date navigation buttons need to be disabled while the table is rendering. --- src/assets/js/backend_calendar_table_view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/assets/js/backend_calendar_table_view.js b/src/assets/js/backend_calendar_table_view.js index a5c1747a..87b176be 100644 --- a/src/assets/js/backend_calendar_table_view.js +++ b/src/assets/js/backend_calendar_table_view.js @@ -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); }