From: Pierre Habouzit Date: Mon, 18 Aug 2003 11:56:17 +0000 (+0000) Subject: bugfix for IE X-Git-Tag: procmail~67 X-Git-Url: http://git.polytechnique.org/?p=old-projects.git;a=commitdiff_plain;h=3e328a2d687bac7ea1f28015eb7ccbb340a8e995 bugfix for IE --- diff --git a/philter/philter/include/philter.js b/philter/philter/include/philter.js index 3cf2fe2..834f07c 100644 --- a/philter/philter/include/philter.js +++ b/philter/philter/include/philter.js @@ -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 **********/