kopia lustrzana https://github.com/cyoung/stratux
rodzic
404a4c9c05
commit
9e6ba2094e
|
@ -79,10 +79,11 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.updateppm = function () {
|
$scope.updateppm = function () {
|
||||||
|
settings["PPM"] = 0
|
||||||
if (($scope.PPM !== undefined) && ($scope.PPM !== null) && ($scope.PPM !== settings["PPM"])) {
|
if (($scope.PPM !== undefined) && ($scope.PPM !== null) && ($scope.PPM !== settings["PPM"])) {
|
||||||
settings["PPM"] = parseInt($scope.PPM);
|
settings["PPM"] = parseInt($scope.PPM);
|
||||||
newsettings = {
|
newsettings = {
|
||||||
"PPM": parseInt($scope.PPM)
|
"PPM": settings["PPM"]
|
||||||
};
|
};
|
||||||
// console.log(angular.toJson(newsettings));
|
// console.log(angular.toJson(newsettings));
|
||||||
setSettings(angular.toJson(newsettings));
|
setSettings(angular.toJson(newsettings));
|
||||||
|
|
Ładowanie…
Reference in New Issue