Fixed closing homes to actually call the close on the homes. Updated the

lowest setting on the test dim function to b 1.

Fixes #438
Fixes #440
This commit is contained in:
bwssystems
2017-02-05 14:37:35 -06:00
parent 6b3ae1b971
commit 3016712ad8
14 changed files with 44 additions and 19 deletions

View File

@@ -1145,7 +1145,7 @@ app.controller('ValueDialogCtrl', function ($scope, bridgeService, ngDialog) {
$scope.slider = {
value: 100,
options: {
floor: 0,
floor: 1,
ceil: 100,
showSelectionBar: true
}
@@ -1154,8 +1154,8 @@ app.controller('ValueDialogCtrl', function ($scope, bridgeService, ngDialog) {
$scope.valueType = "percentage";
$scope.changeScale = function () {
if($scope.valueType === "raw") {
$scope.slider.options.ceil = 255;
$scope.slider.value = 255;
$scope.slider.options.ceil = 254;
$scope.slider.value = 254;
}
else {
$scope.slider.options.ceil = 100;
@@ -1164,7 +1164,7 @@ app.controller('ValueDialogCtrl', function ($scope, bridgeService, ngDialog) {
};
$scope.setValue = function () {
ngDialog.close('ngdialog1');
var theValue = 0;
var theValue = 1;
if($scope.valueType === "percentage")
theValue = Math.round(($scope.slider.value * .01) * 255);
else