aboutsummaryrefslogtreecommitdiffstats
path: root/source/settings.js
diff options
context:
space:
mode:
authorzefanja <zefanja@freenet.de>2014-04-09 19:01:43 +0700
committerzefanja <zefanja@freenet.de>2014-04-09 19:01:43 +0700
commit83cf27f8307387575db72fe20d4ee664a83fd1aa (patch)
treef7a9dc82cc87d6bdefd230eba5bf9167a9208710 /source/settings.js
parent1fe3475936da6c4a071283dc91af638a79c93d91 (diff)
downloadbiblez-ng-83cf27f8307387575db72fe20d4ee664a83fd1aa.tar.gz
* fixed many bugs in the new view
* adding userData will work again
Diffstat (limited to 'source/settings.js')
-rw-r--r--source/settings.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/settings.js b/source/settings.js
index bddab2b..1d9700e 100644
--- a/source/settings.js
+++ b/source/settings.js
@@ -55,12 +55,16 @@ enyo.kind({
]}
],
+ changed: false,
+
rendered: function () {
this.inherited(arguments);
this.$.container.resized();
},
handleBack: function() {
+ if (this.changed)
+ this.doChange();
this.doBack();
},
@@ -89,8 +93,10 @@ enyo.kind({
handleSettings: function (inSender, inEvent) {
api.putSetting(inSender.key, inSender.getValue(), enyo.bind(this, function (inError, inId) {
if(!inError)
- this.doChange({setting: inSender.key, value: inSender.getValue()});
+ this.changed = true;
+ //this.doChange({setting: inSender.key, value: inSender.getValue()});
}));
+ return true;
},
deleteModules: function () {