kopia lustrzana https://github.com/cyoung/stratux
Merge pull request #512 from jamez70/developer_mode_bugfix
Fixed typo with developer mode variablepull/513/head
commit
b5ccfdc9ae
|
@ -86,7 +86,7 @@ app.controller('MainCtrl', function ($scope, $http) {
|
||||||
$http.get(URL_SETTINGS_GET)
|
$http.get(URL_SETTINGS_GET)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
settings = angular.fromJson(response.data);
|
settings = angular.fromJson(response.data);
|
||||||
$scope.developerMode = settings.DeveloperMode;
|
$scope.DeveloperMode = settings.DeveloperMode;
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
//Second function handles error
|
//Second function handles error
|
||||||
});
|
});
|
||||||
|
|
|
@ -101,7 +101,7 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) {
|
||||||
$http.get(URL_SETTINGS_GET).
|
$http.get(URL_SETTINGS_GET).
|
||||||
then(function (response) {
|
then(function (response) {
|
||||||
settings = angular.fromJson(response.data);
|
settings = angular.fromJson(response.data);
|
||||||
$scope.developerMode = settings.DeveloperMode;
|
$scope.DeveloperMode = settings.DeveloperMode;
|
||||||
$scope.visible_uat = settings.UAT_Enabled;
|
$scope.visible_uat = settings.UAT_Enabled;
|
||||||
$scope.visible_es = settings.ES_Enabled;
|
$scope.visible_es = settings.ES_Enabled;
|
||||||
$scope.visible_ping = settings.Ping_Enabled;
|
$scope.visible_ping = settings.Ping_Enabled;
|
||||||
|
@ -142,7 +142,7 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) {
|
||||||
|
|
||||||
var clicks = 0;
|
var clicks = 0;
|
||||||
var clickSeconds = 0;
|
var clickSeconds = 0;
|
||||||
var developerModeClick = 0;
|
var DeveloperModeClick = 0;
|
||||||
|
|
||||||
var clickInterval = $interval(function () {
|
var clickInterval = $interval(function () {
|
||||||
if ((clickSeconds >= 3))
|
if ((clickSeconds >= 3))
|
||||||
|
@ -171,14 +171,14 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) {
|
||||||
{
|
{
|
||||||
clicks=0;
|
clicks=0;
|
||||||
clickSeconds=0;
|
clickSeconds=0;
|
||||||
developerModeClick = 1;
|
DeveloperModeClick = 1;
|
||||||
$http.get(URL_DEV_TOGGLE_GET);
|
$http.get(URL_DEV_TOGGLE_GET);
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.GetDeveloperModeClick = function() {
|
$scope.GetDeveloperModeClick = function() {
|
||||||
return developerModeClick;
|
return DeveloperModeClick;
|
||||||
}
|
}
|
||||||
// Status Controller tasks
|
// Status Controller tasks
|
||||||
setHardwareVisibility();
|
setHardwareVisibility();
|
||||||
|
|
Ładowanie…
Reference in New Issue