plugins/gallery/upload.php
changeset 10 b38afb86dcad
parent 3 10d663f5ed88
child 12 3893b99cd443
--- a/plugins/gallery/upload.php	Thu Aug 09 12:31:24 2007 -0400
+++ b/plugins/gallery/upload.php	Thu Aug 09 12:34:39 2007 -0400
@@ -390,7 +390,7 @@
           <td class="row2">Move to folder:</td>
           <td class="row1">
             <div class="toggle">
-              <div class="head" onclick="gal_toggle(this.nextSibling.nextSibling, this.childNodes[1]);">
+              <div class="head" onclick="gal_toggle( ( IE ? this.nextSibling : this.nextSibling.nextSibling ), this.childNodes[1]);">
                 <img alt="&gt;&gt;" src="<?php echo scriptPath; ?>/plugins/gallery/toggle-closed.png" class="toggler" />
                 Select folder
               </div>
@@ -465,7 +465,7 @@
           <td class="row2">Move to folder:</td>
           <td class="row1">
             <div class="toggle">
-              <div class="head" onclick="gal_toggle(this.nextSibling.nextSibling, this.childNodes[1]);">
+              <div class="head" onclick="gal_toggle( ( IE ? this.nextSibling : this.nextSibling.nextSibling ), this.childNodes[1]);">
                 <img alt="&gt;&gt;" src="<?php echo scriptPath; ?>/plugins/gallery/toggle-closed.png" class="toggler" />
                 Select folder
               </div>
@@ -508,7 +508,7 @@
         <td class="row2">Move all to folder:<br /><small>Other folder fields on this page can override this for individual images.</small></td>
         <td class="row1" style="width: 70%;">
           <div class="toggle">
-            <div class="head" onclick="gal_toggle(this.nextSibling.nextSibling, this.childNodes[1]);">
+            <div class="head" onclick="gal_toggle( ( IE ? this.nextSibling : this.nextSibling.nextSibling ), this.childNodes[1]);">
               <img alt="&gt;&gt;" src="<?php echo scriptPath; ?>/plugins/gallery/toggle-closed.png" class="toggler" />
               Select folder
             </div>
@@ -1062,7 +1062,7 @@
         <td class="row2">Upload to folder:</td>
         <td class="row1">
           <div class="toggle">
-            <div class="head" onclick="gal_toggle(this.nextSibling.nextSibling, this.childNodes[1]);">
+            <div class="head" onclick="gal_toggle( ( IE ? this.nextSibling : this.nextSibling.nextSibling ), this.childNodes[1]);">
               <img alt="&gt;&gt;" src="<?php echo scriptPath; ?>/plugins/gallery/toggle-closed.png" class="toggler" />
               Select folder
             </div>