diff options
author | zefanja <zefanja@freenet.de> | 2013-12-25 23:11:28 +0700 |
---|---|---|
committer | zefanja <zefanja@freenet.de> | 2013-12-25 23:11:28 +0700 |
commit | 93611890bc232a263df6459c3bdcbdf8c392e0b0 (patch) | |
tree | 2c0afb46c4963630d301451f621f0bb688dae314 /source/popup.js | |
parent | 366ce9eaca8380b60bb33539be2bbf2a70779c98 (diff) | |
download | biblez-ng-93611890bc232a263df6459c3bdcbdf8c392e0b0.tar.gz |
* changed currentPassage object
* further preparation for bookmarking support
Diffstat (limited to 'source/popup.js')
-rw-r--r-- | source/popup.js | 8 |
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 |