From 6fba981549765b2e8ef8cb0022a791e7947d125a Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 2 May 2018 08:45:52 -0400 Subject: css cleanup / jshint --- www/js/StateCtrl.js | 16 ++++++++-------- www/templates/events-modal.html | 3 ++- www/templates/log.html | 4 ++-- www/templates/menu.html | 2 +- www/templates/monitors.html | 2 +- www/templates/state.html | 3 ++- www/templates/wizard.html | 6 +++--- 7 files changed, 19 insertions(+), 17 deletions(-) (limited to 'www') diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js index c6fd1384..ed188613 100644 --- a/www/js/StateCtrl.js +++ b/www/js/StateCtrl.js @@ -229,15 +229,15 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' { case 1: $scope.zmRun = $translate.instant('kZMRunning'); - $scope.color = 'color:green;'; + $scope.color = 'green'; break; case 0: $scope.zmRun = $translate.instant('kZMStopped'); - $scope.color = 'color:red;'; + $scope.color = 'red'; break; default: $scope.zmRun = $translate.instant('kZMUndetermined'); - $scope.color = 'color:orange;'; + $scope.color = 'orange'; break; } @@ -248,7 +248,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' { //console.log("ERROR in getRun: " + JSON.stringify(error)); NVRDataModel.log("Error getting RunStatus " + JSON.stringify(error), "error"); - $scope.color = 'color:red;'; + $scope.color = 'red'; $scope.zmRun = $translate.instant('kZMUndetermined'); } ); @@ -292,7 +292,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' NVRDataModel.debug("inside performZMoperation with " + str); $scope.zmRun = "..."; - $scope.color = 'color:orange;'; + $scope.color = 'orange'; $scope.customState = ""; NVRDataModel.debug("StateCtrl/controlZM: POST Control command is " + apiExec + str + ".json"); inProgress = 1; @@ -306,11 +306,11 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' { case "stop": $scope.zmRun = $translate.instant('kZMStopped'); - $scope.color = 'color:red;'; + $scope.color = 'red'; break; default: $scope.zmRun = $translate.instant('kZMRunning'); - $scope.color = 'color:green;'; + $scope.color = 'green'; getCurrentState(); break; @@ -325,7 +325,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' NVRDataModel.debug("StateCtrl/controlZM: returned error"); NVRDataModel.log("Error in change run state:" + JSON.stringify(error), "error"); $scope.zmRun = $translate.instant('kZMUndetermined'); - $scope.color = 'color:orange;'; + $scope.color = 'orange'; inProgress = 0; }); diff --git a/www/templates/events-modal.html b/www/templates/events-modal.html index b58e2711..29b6004e 100644 --- a/www/templates/events-modal.html +++ b/www/templates/events-modal.html @@ -45,7 +45,8 @@
-
+ +
- +
- +
diff --git a/www/templates/menu.html b/www/templates/menu.html index 3337673f..838fe941 100644 --- a/www/templates/menu.html +++ b/www/templates/menu.html @@ -65,7 +65,7 @@ -  {{$root.getProfileName();}}  +  {{$root.getProfileName();}}  diff --git a/www/templates/monitors.html b/www/templates/monitors.html index 9bd2d5fa..dbde85cf 100644 --- a/www/templates/monitors.html +++ b/www/templates/monitors.html @@ -25,7 +25,7 @@ {{monitor.Monitor.Name}} - +
diff --git a/www/templates/state.html b/www/templates/state.html index 33df994e..e5ad16d1 100644 --- a/www/templates/state.html +++ b/www/templates/state.html @@ -14,7 +14,8 @@
ZoneMinder:
-
+ +
{{zmRun}}

{{customState}}

diff --git a/www/templates/wizard.html b/www/templates/wizard.html index 70f17b6e..872dc7fb 100644 --- a/www/templates/wizard.html +++ b/www/templates/wizard.html @@ -66,9 +66,9 @@

{{'kWizResults' | translate}}

-  {{wizard.portalValidText}}
-  {{wizard.apiValidText}}
-  {{wizard.streamingValidText}}
+  {{wizard.portalValidText}}
+  {{wizard.apiValidText}}
+  {{wizard.streamingValidText}}

{{'kWizNextStep1' | translate}}: -- cgit v1.2.3