Fix saving of show hidden tasks setting
This commit is contained in:
parent
26e7c6df31
commit
d41eb65256
2 changed files with 4 additions and 6 deletions
|
@ -39,10 +39,9 @@ angular.module('Tasks').factory('SettingsBusinessLayer', [
|
|||
};
|
||||
|
||||
SettingsBusinessLayer.prototype.toggle = function(type, setting) {
|
||||
var value;
|
||||
this._$settingsmodel.toggle(type, setting);
|
||||
value = this._$settingsmodel.getById(type)[setting];
|
||||
return this._persistence.setting(type, setting, value);
|
||||
var value = this._$settingsmodel.getById(type)[setting];
|
||||
return this._persistence.setting(type, setting, +value);
|
||||
};
|
||||
|
||||
SettingsBusinessLayer.prototype.set = function(type, setting, value) {
|
||||
|
|
|
@ -1992,10 +1992,9 @@ angular.module('Tasks').factory('SettingsBusinessLayer', [
|
|||
};
|
||||
|
||||
SettingsBusinessLayer.prototype.toggle = function(type, setting) {
|
||||
var value;
|
||||
this._$settingsmodel.toggle(type, setting);
|
||||
value = this._$settingsmodel.getById(type)[setting];
|
||||
return this._persistence.setting(type, setting, value);
|
||||
var value = this._$settingsmodel.getById(type)[setting];
|
||||
return this._persistence.setting(type, setting, +value);
|
||||
};
|
||||
|
||||
SettingsBusinessLayer.prototype.set = function(type, setting, value) {
|
||||
|
|
Loading…
Reference in a new issue