[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5200] branches/1.3/UI/Contact/contact.js



Revision: 5200
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5200&view=rev
Author:   ehuelsmann
Date:     2012-11-16 15:03:17 +0000 (Fri, 16 Nov 2012)
Log Message:
-----------
Fix issue with Internet Explorer failing to execute the div-selection JS.

Modified Paths:
--------------
    branches/1.3/UI/Contact/contact.js

Modified: branches/1.3/UI/Contact/contact.js
===================================================================
--- branches/1.3/UI/Contact/contact.js	2012-11-16 12:56:41 UTC (rev 5199)
+++ branches/1.3/UI/Contact/contact.js	2012-11-16 15:03:17 UTC (rev 5200)
@@ -5,14 +5,14 @@
 		if (e != e * 1){
 			continue;
                 }
-		e = lis.item(e);
+		e = lis[e];
 		if (e.getAttribute('class') == "nav"){
 			e.addEventListener('click', function (e) {
 				for (var a in this.getElementsByTagName('a')){
 					if (a != a * 1){
 						continue;
 					}
-					a = this.getElementsByTagName('a').item(a);
+					a = this.getElementsByTagName('a')[a];
 					var dest = a.getAttribute('href');
 					dest = dest.replace('#', '');
 					select_div(dest);
@@ -31,7 +31,7 @@
 	var divs = document.getElementsByTagName('div');
 	var i = 0;
 	for (i=0;i<=divs.length;i++){
-		var e = divs.item(i);
+		var e = divs[i];
 		if (!e || !e.getAttribute || !e.getAttribute('class')){
 			continue;
 		}

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.