[jsword-svn] r1817 - trunk/incubator/jsword-www/jswordweb
Apache
apache at www.crosswire.org
Mon Apr 28 16:31:57 MST 2008
Author:
Date: 2008-04-28 16:31:56 -0700 (Mon, 28 Apr 2008)
New Revision: 1817
Modified:
trunk/incubator/jsword-www/jswordweb/iBD.js
trunk/incubator/jsword-www/jswordweb/index.html
Log:
clean
Modified: trunk/incubator/jsword-www/jswordweb/iBD.js
===================================================================
--- trunk/incubator/jsword-www/jswordweb/iBD.js 2008-04-28 20:48:16 UTC (rev 1816)
+++ trunk/incubator/jsword-www/jswordweb/iBD.js 2008-04-28 23:31:56 UTC (rev 1817)
@@ -30,7 +30,30 @@
var verseLimit = 5;
var verseStart= 0;
var total= 0;
+//IE does not have Array.indexOf, this resolves it
+if (!Array.prototype.indexOf)
+{
+ Array.prototype.indexOf = function(elt /*, from*/)
+ {
+ var len = this.length;
+ var from = Number(arguments[1]) || 0;
+ from = (from < 0)
+ ? Math.ceil(from)
+ : Math.floor(from);
+ if (from < 0)
+ from += len;
+
+ for (; from < len; from++)
+ {
+ if (from in this &&
+ this[from] === elt)
+ return from;
+ }
+ return -1;
+ };
+}
+
/**
* Prepare the page for use
*/
Modified: trunk/incubator/jsword-www/jswordweb/index.html
===================================================================
--- trunk/incubator/jsword-www/jswordweb/index.html 2008-04-28 20:48:16 UTC (rev 1816)
+++ trunk/incubator/jsword-www/jswordweb/index.html 2008-04-28 23:31:56 UTC (rev 1817)
@@ -51,8 +51,8 @@
<div id="scroller" align="left">
<button type="button" id="prev" onclick="prev();">Prev</button>
<button type="button" id="next" onclick="next();">Next</button>
- Total:<text id="total"></text>
</div>
+ Total:<div id="total"></div>
<div id="display" ></div>
<div id="display_dict" ></div>
More information about the jsword-svn
mailing list