From f9a490aea5c64649a3fea21dff3552ccedf57382 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 Jun 2016 09:26:50 -0600 Subject: [PATCH] Fix touch swipe destruction sometimes blocked reload of calendar --- calendar/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 47776061f8..b0e7e2b4aa 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -15,6 +15,7 @@ /calendar/js/et2_widget_owner.js; /calendar/js/et2_widget_timegrid.js; /calendar/js/et2_widget_planner.js; + /vendor/bower-asset/jquery-touchswipe/jquery.touchSwipe.js; */ /** @@ -850,7 +851,10 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( */ if(typeof framework !== 'undefined' && framework.applications.calendar && framework.applications.calendar.tab) { - jQuery(framework.applications.calendar.tab.contentDiv).swipe('destroy') + jQuery(framework.applications.calendar.tab.contentDiv) + .swipe('destroy'); + + jQuery(framework.applications.calendar.tab.contentDiv) .swipe({ //Generic swipe handler for all directions swipe:function(event, direction, distance, duration, fingerCount) {