From 51ac4d1e37b0c5797e419caeaab427fcffc52937 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 20 Dec 2017 14:08:20 -0500 Subject: #570 enabled icon toggle so as not to overwhelm small screens. Also added pinning. --- www/js/MomentCtrl.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'www/js/MomentCtrl.js') diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js index d4eceb7f..84af262e 100644 --- a/www/js/MomentCtrl.js +++ b/www/js/MomentCtrl.js @@ -239,7 +239,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ $scope.togglePin =function(ndx) { $scope.moments[ndx].Event.pinned = !$scope.moments[ndx].Event.pinned; if ($scope.moments[ndx].Event.pinned) { - $scope.moments[ndx].Event.pinnedIcon ="animated infinite flash ion-pin"; + $scope.moments[ndx].Event.pinnedIcon =" ion-pin assertive"; } else { $scope.moments[ndx].Event.pinnedIcon ="ion-pin"; @@ -518,7 +518,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ }; $scope.getMoments = function (cond) { - momentType = cond; + if (!cond) cond = momentType; getMoments(cond); }; @@ -670,6 +670,10 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ }); + $scope.toggleIcons = function() { + + $scope.showIcons = !$scope.showIcons; + }; $scope.$on('$ionicView.beforeEnter', function () { /*var w = Math.round(parseInt($rootScope.devWidth) / parseInt($rootScope.pixelRatio)) ; @@ -682,6 +686,8 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ p = Math.ceil(p/5)*5; console.log ("P="+p);*/ + $scope.showIcons = true; + var ld = NVRDataModel.getLogin(); $scope.loadingStatus = $translate.instant('kLoading'); -- cgit v1.2.3