From 3348175b9193b2178ccbaa254d61545af36c2301 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 17 Aug 2016 22:40:17 +0200 Subject: [PATCH] The sticky table header fix must be applied on single dates as well cause the calendar view width might be larger as well. --- src/assets/js/backend_calendar_table_view.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/assets/js/backend_calendar_table_view.js b/src/assets/js/backend_calendar_table_view.js index 2f0a8d57..a5c1747a 100644 --- a/src/assets/js/backend_calendar_table_view.js +++ b/src/assets/js/backend_calendar_table_view.js @@ -56,13 +56,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {}; _createView(startDate, endDate); // Horizontal scrolling fix for sticky table headers. - if ($(this).val() === 1) { - clearInterval(stickyTableHeaderInterval); - } else { - stickyTableHeaderInterval = setInterval(function() { - $(window).trigger('resize.stickyTableHeaders'); - }, 1000); - } + stickyTableHeaderInterval = setInterval(function() { + $(window).trigger('resize.stickyTableHeaders'); + }, 1000); }); $calendarToolbar.on('click', '#reload-appointments', function() {