diff options
author | zefanja <zefanja@freenet.de> | 2014-02-08 14:49:11 +0700 |
---|---|---|
committer | zefanja <zefanja@freenet.de> | 2014-02-08 14:49:11 +0700 |
commit | fbe606637450b229668a3c2473e4cec214b6e310 (patch) | |
tree | 311a1e0eaf9e37df0fe487cd599e9fb15a7eb315 | |
parent | 74fad68f0d5a3f1edf08724218e4700f6e10acaf (diff) | |
download | biblez-ng-fbe606637450b229668a3c2473e4cec214b6e310.tar.gz |
* updated sword.js
* fixed bug, when n atrribute is a number (handling footnotes)
m--------- | lib/sword | 0 | ||||
-rw-r--r-- | source/main.js | 2 |
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") { |