aboutsummaryrefslogtreecommitdiffstats
path: root/source/popup.js
diff options
context:
space:
mode:
authorzefanja <zefanja@freenet.de>2013-12-25 23:11:28 +0700
committerzefanja <zefanja@freenet.de>2013-12-25 23:11:28 +0700
commit93611890bc232a263df6459c3bdcbdf8c392e0b0 (patch)
tree2c0afb46c4963630d301451f621f0bb688dae314 /source/popup.js
parent366ce9eaca8380b60bb33539be2bbf2a70779c98 (diff)
downloadbiblez-ng-93611890bc232a263df6459c3bdcbdf8c392e0b0.tar.gz
* changed currentPassage object
* further preparation for bookmarking support
Diffstat (limited to 'source/popup.js')
-rw-r--r--source/popup.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/popup.js b/source/popup.js
index 22a63c1..24b242c 100644
--- a/source/popup.js
+++ b/source/popup.js
@@ -19,6 +19,12 @@ enyo.kind({
],
handleBookmark: function (inSender, inEvent) {
- console.log(this.osisRef);
+ this.hide();
+ api.putBookmark({osisRef: this.osisRef}, function (inError, inId) {
+ if(!inError) {
+ console.log("Added Bookmark");
+ } else
+ console.log(inError);
+ });
}
}); \ No newline at end of file