summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-12-31 09:42:44 -0500
committerPliable Pixels <pliablepixels@gmail.com>2016-12-31 09:42:44 -0500
commit58d83ee94b9d3c682f28d8763423edc121e458cf (patch)
tree62c26fc311aa61d2c0070d25f183836555928558 /www/js/EventCtrl.js
parent8421165caf3f17441b89257d06fec75f93e8e2ec (diff)
Make sure swipe does not show flags is alarms/scrub is on #388
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index bde55b86..a5ddc44d 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -950,6 +950,15 @@ angular.module('zmApp.controllers')
};
+ $scope.alarmSwipe = function(e)
+ {
+
+ //alert ("HERE");
+ console.log ("HERE");
+ e.stopPropagation();
+ e.preventDefault();
+ };
+
$scope.toggleMotionOutline = function()
{
$scope.outlineMotion = !$scope.outlineMotion;
@@ -2079,6 +2088,7 @@ angular.module('zmApp.controllers')
}
event.Event.ShowScrub = !event.Event.ShowScrub;
+ //console.log ("SCRUBBING IS "+event.Event.ShowScrub);
// $ionicScrollDelegate.resize();
//console.log ("GROUP TYPE IS " + groupType);
@@ -2088,8 +2098,8 @@ angular.module('zmApp.controllers')
if (groupType == 'alarms')
{
- $ionicListDelegate.canSwipeItems(false);
- NVRDataModel.debug ("Disabling flag swipe as alarms are swipable");
+ // $ionicListDelegate.canSwipeItems(false);
+ //NVRDataModel.debug ("Disabling flag swipe as alarms are swipable");
$scope.alarm_images = [];
event.Event.height = (eventsListDetailsHeight + eventsListScrubHeight);
$ionicScrollDelegate.resize();