bufix from Olivier Guillaumin for IE
[old-projects.git] / philter / philter / include / plugin_forward.inc.php
index 7ee74a6..0b06ede 100644 (file)
@@ -19,15 +19,15 @@ class FwdPlugin extends ActionPlugin {
             .   "    var select = document.createElement('select');\n"
             .   "    select.setAttribute('name', Node.name+'[1]');\n"
             .   "\n"
+            .   "    Node.appendChild(document.createTextNode(' email : '));\n"
+            .   "    Node.appendChild(select);\n"
+            .   "\n"
             .   "    for(i=0,j=0; i<mail_pool.length; i++) {\n"
             .   "        if(data[1]==i) sel = j;\n"
             .   "        if(mail_pool[i])\n"
             .   "            select.options[j++] = new Option(mail_pool[i],i,false,(data[1]==i));\n"
             .   "    }\n"
             .   "    select.selectedIndex = sel;\n"
-            .   "\n"
-            .   "    Node.appendChild(document.createTextNode(' email : '));\n"
-            .   "    Node.appendChild(select);\n"
             .   "}";
 
         return $res;