summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-11-08 11:00:37 -0500
committerPliable Pixels <pliablepixels@gmail.com>2019-11-08 11:00:37 -0500
commit2f4ef011d2c593420873dc741c9f034b2f5d3f1d (patch)
tree50fa214657e5b2b902449437608651b2bc93d679 /www
parent318f5f8912001fac0941c546a19814b4fa462dbd (diff)
don't enable drag if disableDrag is on. Used for views like timeline
Diffstat (limited to 'www')
-rw-r--r--www/js/EventModalCtrl.js3
1 files changed, 2 insertions, 1 deletions
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);