summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@users.noreply.github.com>2016-08-22 10:26:39 -0400
committerGitHub <noreply@github.com>2016-08-22 10:26:39 -0400
commit42e8639458ab943a75d29d50621820a34622d8a7 (patch)
treeb4387e669780d2e22fc5f80e17747ce4e2bcc4ed
parent71045ed744f17d645c69295fc849e5cb4ab9b866 (diff)
Revert "Added Wake-Sleep-Reset control commands"
Former-commit-id: bd9563286cf4ac6c56a9cddb71f53f6cf1d0fda5
-rw-r--r--www/css/style.css10
-rw-r--r--www/js/MonitorCtrl.js7
-rw-r--r--www/js/MonitorModalCtrl.js21
-rw-r--r--www/js/MontageCtrl.js7
-rw-r--r--www/lang/locale-en.json2
-rw-r--r--www/lang/locale-it.json2
-rw-r--r--www/lang/locale-pt.json2
-rw-r--r--www/templates/monitors-modal.html13
8 files changed, 8 insertions, 56 deletions
diff --git a/www/css/style.css b/www/css/style.css
index a7c57347..1e6627b4 100644
--- a/www/css/style.css
+++ b/www/css/style.css
@@ -312,15 +312,7 @@ http://www.cssportal.com/tryit/index.php?file=blog/css-notification-badge */
}
-.ptzcenteredtopbutton
-{
- position: absolute;
- top: 20%;
- left:50%;
- transform: translate(-50%, -50%);
-}
-
-.ptzcenteredbotbutton
+.ptzcenteredbutton
{
position: absolute;
top: 80%;
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js
index 900084cb..97110760 100644
--- a/www/js/MonitorCtrl.js
+++ b/www/js/MonitorCtrl.js
@@ -346,11 +346,6 @@ angular.module('zmApp.controllers')
$scope.LoginData = ZMDataModel.getLogin();
$rootScope.modalRand = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111;
-
- $scope.ptzWakeCommand = "";
- $scope.ptzSleepCommand = "";
- $scope.ptzResetCommand = "";
-
$scope.ptzMoveCommand = "";
$scope.ptzStopCommand = "";
@@ -498,4 +493,4 @@ angular.module('zmApp.controllers')
};
-}]);
+}]); \ No newline at end of file
diff --git a/www/js/MonitorModalCtrl.js b/www/js/MonitorModalCtrl.js
index e51f5af3..e4912294 100644
--- a/www/js/MonitorModalCtrl.js
+++ b/www/js/MonitorModalCtrl.js
@@ -1031,10 +1031,6 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$
//
function configurePTZ(mid)
{
- $scope.ptzWakeCommand = "";
- $scope.ptzSleepCommand = "";
- $scope.ptzResetCommand = "";
-
$scope.ptzMoveCommand = "";
$scope.ptzStopCommand = "";
@@ -1064,21 +1060,6 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$
$http.get(myurl)
.success(function (data) {
- if (data.control.Control.CanWake == '1')
- {
- $scope.ptzWakeCommand = 'wake';
- }
-
- if (data.control.Control.CanSleep == '1')
- {
- $scope.ptzSleepCommand = 'sleep';
- }
-
- if (data.control.Control.CanReset == '1')
- {
- $scope.ptzResetCommand = 'reset';
- }
-
$scope.ptzMoveCommand = "move"; // start with as move;
$scope.ptzStopCommand = "";
@@ -1193,4 +1174,4 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$
});
-}]);
+}]); \ No newline at end of file
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index c5ba05bd..6d93e753 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -664,11 +664,6 @@ function initPackery()
$scope.LoginData = ZMDataModel.getLogin();
$rootScope.modalRand = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111;
-
- $scope.ptzWakeCommand = "";
- $scope.ptzSleepCommand = "";
- $scope.ptzResetCommand = "";
-
$scope.ptzMoveCommand = "";
$scope.ptzStopCommand = "";
@@ -1159,4 +1154,4 @@ $scope.$on('$ionicView.afterEnter', function () {
};
-}]);
+}]); \ No newline at end of file
diff --git a/www/lang/locale-en.json b/www/lang/locale-en.json
index f9ab5a1c..29fcd66f 100644
--- a/www/lang/locale-en.json
+++ b/www/lang/locale-en.json
@@ -268,7 +268,6 @@
"kShowTip" :"show tip",
"kShowing" :"Showing",
"kShowingEvent" :"showing event",
- "kSleep" :"Sleep",
"kSpeed" :"speed",
"kStart" :"Start",
"kStateAreYouSure" :"Are you sure you want to ",
@@ -309,7 +308,6 @@
"kVersion" :"Version",
"kVersionIncompatible" :"I am incompatible with your ZoneMinder version",
"kVideo" :"Video",
- "kWake" :"Wake",
"kWarningLargeTimeline" :"A large value can affect timeline performance. If you find timeline performance slow, try reducing the value to 200 and work your way up from there.",
"kWeek" :"Week",
"kWelcomeWizard" :"Welcome to zmWizard",
diff --git a/www/lang/locale-it.json b/www/lang/locale-it.json
index fc32e5a9..61a871a3 100644
--- a/www/lang/locale-it.json
+++ b/www/lang/locale-it.json
@@ -266,7 +266,6 @@
"kShowTip" :"Mostra suggerimenti",
"kShowing" :"Visualizzando",
"kShowingEvent" :"Mostrando eventi",
- "kSleep" :"Sleep",
"kSpeed" :"Velocità",
"kStart" :"Start",
"kStateAreYouSure" :"Sei sicuro di voler ",
@@ -306,7 +305,6 @@
"kVersion" :"Versione",
"kVersionIncompatible" :"Non sono campatibile con la tua versione di Zoneminder",
"kVideo" :"Video",
- "kWake" :"Wake",
"kWarningLargeTimeline" :"Un valore più alto influenza le prestazioni della timeline. Se le prestazioni sono basse, prova a ridurre il valore a 200.",
"kWeek" :"Settimana",
"kWelcomeWizard" :"Benvenuto al wizard!!!",
diff --git a/www/lang/locale-pt.json b/www/lang/locale-pt.json
index 1f635be1..77da2a76 100644
--- a/www/lang/locale-pt.json
+++ b/www/lang/locale-pt.json
@@ -266,7 +266,6 @@
"kShowTip" :"mostrar dica",
"kShowing" :"Mostrando",
"kShowingEvent" :"mostrando evento",
- "kSleep" :"Sleep",
"kSpeed" :"velocidade",
"kStart" :"Começar",
"kStateAreYouSure" :"Você tem a certeza que quer ",
@@ -307,7 +306,6 @@
"kVersionIncompatible" :"Sou incompativel com a sua versão do ZoneMinder",
"kVideo" :"Vídeo",
"kWarningLargeTimeline" :"Um valor elevado pode afetar o desempenho da timeline. Se você achar o desempenho da timeline lento, tente reduzir o valor para 200 e trabalhe a partir daí.",
- "kWake" :"Wake",
"kWeek" :"Semana",
"kWelcomeWizard" :"Benvindo ao Assistente",
"kWizAuthText1" :"Confuso? Autenticação ZM, é a autenticação usada quando você habilita OPT_USE_AUTH no ecrã de opções da consola do ZM.",
diff --git a/www/templates/monitors-modal.html b/www/templates/monitors-modal.html
index 9524b041..053d9beb 100644
--- a/www/templates/monitors-modal.html
+++ b/www/templates/monitors-modal.html
@@ -36,13 +36,6 @@
<div ng-show="isControllable=='1' && showPTZ">
-
- <div class="ptzcenteredtopbutton">
- <a class="button button-small icon button-royal" href="" ng-click="controlPTZ(monitorId, ptzWakeCommand);">{{'kWake' | translate}}</a>
- <a class="button button-small icon button-royal" href="" ng-click="controlPTZ(monitorId, ptzSleepCommand);">{{'kSleep' | translate}}</a>
- <a class="button button-small icon button-royal" href="" ng-click="controlPTZ(monitorId, ptzResetCommand);">{{'Reset' | translate}}</a>
- </div>
-
<div class="ptzcentered">
<circular options="ptzRadialMenuOptions">
</circular>
@@ -51,11 +44,13 @@
<div ng-if="presetOn" class="ptzpresetbuttons animated fadeInDown" id="presetlist">
<div ng-repeat="preset in ptzPresets track by $index">
<button class="button {{preset.icon}} button-small button-royal" style="float:left;margin-right:10px;margin-bottom:10px;" ng-click="controlPTZ(monitorId, preset.cmd);">{{preset.name}}</button>
+
+
</div>
</div>
- <div class="ptzcenteredbotbutton">
+ <div class="ptzcenteredbutton">
<div ng-if="canZoom">
<a class="button button-small icon ion-search button-positive" href="" ng-click="controlPTZ(monitorId, zoomInCommand);">+</a>
<a class="button button-small icon ion-search button-positive" href="" ng-click="controlPTZ(monitorId, zoomOutCommand);">-</a>
@@ -137,4 +132,4 @@
<div class="monitor-modal-text">{{monitorName}}&nbsp;<span style="{{stateColor()}}">{{monStatus}}&nbsp;</span></div>
-</div>
+</div> \ No newline at end of file