[settings/advanced] don't override false with the default value

This commit is contained in:
Spencer Alger 2015-03-31 16:22:43 -07:00
parent 47142af7a0
commit ce2cf16118
2 changed files with 1 additions and 2 deletions

View file

@ -40,7 +40,6 @@
<input
ng-show="conf.bool"
ng-model="conf.unsavedValue"
ng-checked="conf.unsavedValue === undefined ? conf.defVal : conf.unsavedValue"
type="checkbox"
class="form-control">
</form>

View file

@ -38,7 +38,7 @@ define(function (require) {
};
$scope.edit = function (conf) {
conf.unsavedValue = conf.value || conf.defVal;
conf.unsavedValue = conf.value == null ? conf.defVal : conf.value;
$scope.configs.forEach(function (c) {
c.editting = (c === conf);
});