[settings/advanced] don't override false with the default value
This commit is contained in:
parent
47142af7a0
commit
ce2cf16118
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue