From 58d83ee94b9d3c682f28d8763423edc121e458cf Mon Sep 17 00:00:00 2001
From: Pliable Pixels
Date: Sat, 31 Dec 2016 09:42:44 -0500
Subject: Make sure swipe does not show flags is alarms/scrub is on #388
---
www/js/EventCtrl.js | 14 ++++++++++++--
www/templates/events.html | 17 +++++++++++++----
2 files changed, 25 insertions(+), 6 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();
diff --git a/www/templates/events.html b/www/templates/events.html
index a14452bc..b739b19a 100644
--- a/www/templates/events.html
+++ b/www/templates/events.html
@@ -126,7 +126,9 @@
:{{outlineMotion}}
-
+
+
+
@@ -138,6 +140,8 @@
+
+
@@ -192,11 +196,16 @@
-
- {{'kUnflag' | translate}}
+
+ VAL:{{event.Event.ShowScrub}}
- {{'kFlag' | translate}}
+
+
+ {{'kUnflag' | translate}}
+ {{'kFlag' | translate}}
+
+
--
cgit v1.2.3