From 2f4ef011d2c593420873dc741c9f034b2f5d3f1d Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 8 Nov 2019 11:00:37 -0500 Subject: don't enable drag if disableDrag is on. Used for views like timeline --- www/js/EventModalCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js/EventModalCtrl.js') diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 92eae748..6741eecf 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -1257,7 +1257,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro $scope.$on('modal.removed', function (e, m) { - $ionicSideMenuDelegate.canDragContent(true); + if (!m.disableDrag ) + $ionicSideMenuDelegate.canDragContent(true); if ($rootScope.platformOS == 'desktop') { NVR.debug("Removing keyboard handler"); window.removeEventListener('keydown', keyboardHandler, true); -- cgit v1.2.3