aboutsummaryrefslogtreecommitdiffstats
path: root/source/api.js
diff options
context:
space:
mode:
authorzefanja <zefanja@freenet.de>2013-12-27 21:58:52 +0700
committerzefanja <zefanja@freenet.de>2013-12-27 21:58:52 +0700
commit4befa8b70deb1c413363e43b7ce579b3907b83e6 (patch)
tree454cfe82e6e32f8e7560e573777c6d252d99dc87 /source/api.js
parentcc465575749685e7f633d694c841d1b3ee875fab (diff)
downloadbiblez-ng-4befa8b70deb1c413363e43b7ce579b3907b83e6.tar.gz
* added settings panel
* removed deploy folder → it's in the gh-pages branch (like before) * you test the app under http://zefanja.github.io/biblez-ng/app/
Diffstat (limited to 'source/api.js')
-rw-r--r--source/api.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/api.js b/source/api.js
index 13842b6..07f7306 100644
--- a/source/api.js
+++ b/source/api.js
@@ -196,4 +196,15 @@ var api = {
else inCallback(inError);
}));
},
+
+ putSetting: function (inKey, inValue, inCallback) {
+ this.get("settings", enyo.bind(this, function (inError, inSettings) {
+ if(!inError) {
+ inSettings[inKey] = inValue;
+ this.put(inSettings, inCallback);
+ } else {
+ inCallback(inError);
+ }
+ }));
+ }
}; \ No newline at end of file