Fix saving of show hidden tasks setting

This commit is contained in:
Raimund Schlüßler 2016-09-04 00:05:48 +02:00
parent 26e7c6df31
commit d41eb65256
2 changed files with 4 additions and 6 deletions

View file

@ -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) {

View file

@ -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) {