Improve usability of attachment checkboxes
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 14 Jun 2013 23:04:58 +0000 (23:04 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 14 Jun 2013 23:04:58 +0000 (23:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14365 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/compose_attachments.tpl

index 5314fe1..19edf6b 100644 (file)
@@ -52,11 +52,11 @@ extract($t);
         ?>
  <tr class="attachment">
   <td class="fieldName" style="width: 1%">
-   <input type="checkbox" name="delete[]" accesskey="<?php echo ($attachment_count % 10); ?>" value="<?php echo $attach['Key']; ?>" />
+   <input type="checkbox" name="delete[]" id="delete<?php echo $attachment_count; ?>" accesskey="<?php echo ($attachment_count % 10); ?>" value="<?php echo $attach['Key']; ?>" />
   </td>
-  <td class="fieldValue">
+  <td class="fieldValue"><label for="delete<?php echo $attachment_count; ?>">
    <?php echo $attach['FileName']; ?> - <?php echo $attach['ContentType']; ?> (<?php echo humanReadableSize($attach['Size']); ?>)
-  </td>
+  </label></td>
  </tr>
         <?php
         $attachment_count++;