summaryrefslogtreecommitdiff
path: root/www/js/MomentCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-12-20 14:08:20 -0500
committerPliable Pixels <pliablepixels@gmail.com>2017-12-20 14:08:20 -0500
commit51ac4d1e37b0c5797e419caeaab427fcffc52937 (patch)
treea453d219e4156e61d38610c47df4c3fc711ad993 /www/js/MomentCtrl.js
parent7482599ccaf95c7a23ca2118052c53775a0514d5 (diff)
#570 enabled icon toggle so as not to overwhelm small screens. Also added pinning.
Diffstat (limited to 'www/js/MomentCtrl.js')
-rw-r--r--www/js/MomentCtrl.js10
1 files changed, 8 insertions, 2 deletions
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');