Make sure send buttons are named correctly in advanced template too
[squirrelmail.git] / templates / default_advanced / compose_body.tpl
index 372dd0b3a914a8fb56207a863604bc183faf09e6..61d70c618f8ded991a655d460153e720f90be49a 100644 (file)
@@ -30,7 +30,7 @@ extract($t);
 
     // FIXME: There should be a better way (probably best to be javascript only, although trying to avoid unnecessary js) to calculate resize_handle width to match $editor_width 
     //$_total_width_ = 700;
 
     // FIXME: There should be a better way (probably best to be javascript only, although trying to avoid unnecessary js) to calculate resize_handle width to match $editor_width 
     //$_total_width_ = 700;
-    echo '<div class="resize_handle" ' /* style="width: ' . ($editor_width * 8.3) . 'px; margin-left: ' . (($_total_width_ - ($editor_width * 8.3)) / 2) . 'px;" */ . 'onmousedown="startVertResizeDrag(event, document.forms[0].body, 40, 9000, this);"></div>';
+    echo '<div class="resize_handle" ' /* style="width: ' . ($editor_width * 8.3) . 'px; margin-left: ' . (($_total_width_ - ($editor_width * 8.3)) / 2) . 'px;" */ . 'onmousedown="startVertResizeDrag(event, document.compose.body, 40, 9000, this);"></div>';
 
 ?>
 
 
 ?>
 
@@ -41,7 +41,7 @@ extract($t);
         ?>
  <tr>
   <td class="bottomSend">
         ?>
  <tr>
   <td class="bottomSend">
-   <input type="submit" name="send" value="<?php echo _("Send"); ?>" />
+   <input type="submit" name="<?php echo unique_widget_name('send'); ?>" value="<?php echo _("Send"); ?>" />
   </td>
  </tr>
         <?php
   </td>
  </tr>
         <?php