aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzefanja <zefanja@freenet.de>2014-02-08 14:49:11 +0700
committerzefanja <zefanja@freenet.de>2014-02-08 14:49:11 +0700
commitfbe606637450b229668a3c2473e4cec214b6e310 (patch)
tree311a1e0eaf9e37df0fe487cd599e9fb15a7eb315
parent74fad68f0d5a3f1edf08724218e4700f6e10acaf (diff)
downloadbiblez-ng-fbe606637450b229668a3c2473e4cec214b6e310.tar.gz
* updated sword.js
* fixed bug, when n atrribute is a number (handling footnotes)
m---------lib/sword0
-rw-r--r--source/main.js2
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/sword b/lib/sword
-Subproject 520e4fe453eb0d042dd2ba8859c72fac0d4d1fd
+Subproject 53f59836311923f446e26733c5dc2f4b29eede9
diff --git a/source/main.js b/source/main.js
index 7ef36a8..1f140a1 100644
--- a/source/main.js
+++ b/source/main.js
@@ -494,6 +494,8 @@ enyo.kind({
this.footnotes[attributes.osisRef].forEach(enyo.bind(this, function(item) {
if(item.n === attributes.n)
this.$.footnotePopup.setText(item.note);
+ else if (!isNaN(item.n) && item.n === parseInt(attributes.n, 10))
+ this.$.footnotePopup.setText(item.note);
}));
this.$.footnotePopup.showAtEvent(inEvent);
} else if (attributes.type === "crossReference") {