diff options
author | zefanja <zefanja@freenet.de> | 2014-01-17 14:52:44 +0700 |
---|---|---|
committer | zefanja <zefanja@freenet.de> | 2014-01-17 14:52:44 +0700 |
commit | 60716d99e0b77ee2ef5a8c1ec56ff2b0ab7866e6 (patch) | |
tree | cfcac24d5451dd9a3643b1bae8c5d5951385c0a0 /source/main.js | |
parent | d241fd8583ab4dd3d6fd2e660db47582adffe72e (diff) | |
download | biblez-ng-60716d99e0b77ee2ef5a8c1ec56ff2b0ab7866e6.tar.gz |
* added spinner to crossRef popup
* added onyx.button to bcSelector
* fixed bug in handle crossRef setting
Diffstat (limited to 'source/main.js')
-rw-r--r-- | source/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/main.js b/source/main.js index 150ed81..25fcb9e 100644 --- a/source/main.js +++ b/source/main.js @@ -144,7 +144,7 @@ enyo.kind({ api.get("settings", enyo.bind(this, function(inError, inSettings) { if(!inError) { this.settings = (inSettings) ? inSettings: this.settings; - if(inEvent.setting === "linebreak" || inEvent.setting === "footnotes" || inEvent.setting === "headings" || inEvent.crossReferences === "headings") + if(inEvent.setting === "linebreak" || inEvent.setting === "footnotes" || inEvent.setting === "headings" || inEvent.setting === "crossReferences") this.handlePassage(); } else { this.handleError("Couldn't load settings!"); @@ -486,11 +486,13 @@ enyo.kind({ })); this.$.footnotePopup.showAtEvent(inEvent); } else if (attributes.type === "crossReference") { + this.$.footnotePopup.showAtEvent(inEvent); + this.$.footnotePopup.handleSpinner(true); this.currentModule.renderText(attributes.osisRef, {oneVersePerLine: false, footnotes: false, headings: false}, enyo.bind(this, function (inError, inResult) { if(!inError) { this.$.footnotePopup.setText(inResult.text); - this.$.footnotePopup.showAtEvent(inEvent); + this.$.footnotePopup.handleSpinner(false); } else { this.$.footnotePopup.hide(); this.handleError(inError.message); |