diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-11-08 11:00:37 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-11-08 11:00:37 -0500 |
| commit | 2f4ef011d2c593420873dc741c9f034b2f5d3f1d (patch) | |
| tree | 50fa214657e5b2b902449437608651b2bc93d679 | |
| parent | 318f5f8912001fac0941c546a19814b4fa462dbd (diff) | |
don't enable drag if disableDrag is on. Used for views like timeline
| -rw-r--r-- | www/js/EventModalCtrl.js | 3 |
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); |
