bugfix for IE
authorPierre Habouzit <madcoder@debian.org>
Mon, 18 Aug 2003 11:56:17 +0000 (11:56 +0000)
committerPierre Habouzit <madcoder@debian.org>
Mon, 18 Aug 2003 11:56:17 +0000 (11:56 +0000)
philter/philter/include/philter.js

index 3cf2fe2..834f07c 100644 (file)
@@ -26,10 +26,10 @@ function getElement(obj) {
 }
 
 function getNthElement(obj, index) {
-    if(document.all)
-        return document.all[obj][index];
     if(document.getElementsByName)
         return document.getElementsByName(obj)[index];
+    if(document.all)
+        return document.all[obj][index];
 }
 
 /********** ORDER FORM FUNCTIONS **********/