aboutsummaryrefslogtreecommitdiffstats
path: root/source/main.js
diff options
context:
space:
mode:
authorzefanja <zefanja@freenet.de>2014-01-17 14:52:44 +0700
committerzefanja <zefanja@freenet.de>2014-01-17 14:52:44 +0700
commit60716d99e0b77ee2ef5a8c1ec56ff2b0ab7866e6 (patch)
treecfcac24d5451dd9a3643b1bae8c5d5951385c0a0 /source/main.js
parentd241fd8583ab4dd3d6fd2e660db47582adffe72e (diff)
downloadbiblez-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.js6
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);