diff options
author | zefanja <zefanja@freenet.de> | 2014-04-26 13:58:23 +0700 |
---|---|---|
committer | zefanja <zefanja@freenet.de> | 2014-04-26 13:58:23 +0700 |
commit | 2d07699b9a6df4aafba796d69703c5215594bce7 (patch) | |
tree | 14d4e3f1651b852c839747243b9c7a0257af05c0 /source/main.js | |
parent | 0c14b67f75bd24f77353fd913f5bcf2cc684f009 (diff) | |
download | biblez-ng-2d07699b9a6df4aafba796d69703c5215594bce7.tar.gz |
* sidebar updates if a u
Diffstat (limited to 'source/main.js')
-rw-r--r-- | source/main.js | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/source/main.js b/source/main.js index 8b974f5..d81bd84 100644 --- a/source/main.js +++ b/source/main.js @@ -471,6 +471,10 @@ enyo.kind({ this.updateVerses(inEvent.osisRef, {bookmark: true}); } this.handleUserData(inEvent.osisRef); + if(this.$.dataView) { + //Update personal data in the sidebar + this.$.dataView.updateSection(); + } }, handleHighlight: function (inSender, inEvent) { @@ -480,6 +484,10 @@ enyo.kind({ //this.updateVerses(inEvent.osisRef, {highlight: true, color: inEvent.color}); } this.handleUserData(inEvent.osisRef); + if(this.$.dataView) { + //Update personal data in the sidebar + this.$.dataView.updateSection(); + } }, handleNoteTap: function (inSender, inEvent) { @@ -493,6 +501,10 @@ enyo.kind({ this.updateVerses(inEvent.osisRef, {note: false}); } this.handleUserData(inEvent.osisRef); + if(this.$.dataView) { + //Update personal data in the sidebar + this.$.dataView.updateSection(); + } }, handleBcSelector: function (inSender, inEvent) { @@ -618,17 +630,6 @@ enyo.kind({ ); } - //Handle user notes - /*if(inSender.type === "note") { - api.getNote(parseInt(this.verses[inEvent.index].noteId, 10), enyo.bind(this, function (inError, inNote) { - if(!inError) { - this.$.notePopup.setText(inNote.text); - this.$.notePopup.setOsisRef(inNote.osisRef); - this.$.notePopup.showAtEvent(inEvent); - } else - this.handleError(inError); - })); - }*/ return false; }, |