[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14364] branches/SM-1_4-STABLE/squirrelmail/src/ compose.php
From:       pdontthink () users ! sourceforge ! net
Date:       2013-06-14 22:24:48
Message-ID: E1UncQN-0005jc-3U () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 14364
          http://sourceforge.net/p/squirrelmail/code/14364
Author:   pdontthink
Date:     2013-06-14 22:24:47 +0000 (Fri, 14 Jun 2013)
Log Message:
-----------
Improve usability of attachment checkboxes

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/src/compose.php

Modified: branches/SM-1_4-STABLE/squirrelmail/src/compose.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/src/compose.php	2013-06-11 04:57:32 UTC (rev \
                14363)
+++ branches/SM-1_4-STABLE/squirrelmail/src/compose.php	2013-06-14 22:24:47 UTC (rev \
14364) @@ -1386,6 +1386,7 @@
         global $username, $attachment_dir;
         $hashed_attachment_dir = getHashedDir($username, $attachment_dir);
         if (!empty($attach_array)) {
+            $attachment_count = 0;
             foreach ($attach_array as $key => $attachment) {
                 $attached_file = $attachment->att_local_name;
                 if ($attachment->att_local_name || $attachment->body_part) {
@@ -1395,11 +1396,11 @@
 
                     $s_a[] = '<table bgcolor="'.$color[0].
                         '" border="0"><tr><td>'.
-                        addCheckBox('delete[]', FALSE, $key).
-                        "</td><td>\n" . $attached_filename .
-                        '</td><td>-</td><td> ' . $type . '</td><td>('.
+                        addCheckBox('delete[]', FALSE, $key, 'id="delete' . \
++$attachment_count . '"'). +                        "</td><td><label for='delete" . \
$attachment_count . "'>\n" . $attached_filename . +                        \
'</label></td><td><label for="delete' . $attachment_count . \
'">-</label></td><td><label for="delete' . $attachment_count . '"> ' . $type . \
                '</label></td><td><label for="delete' . $attachment_count . '">('.
                         show_readable_size( filesize( $hashed_attachment_dir . '/' . \
                $attached_file ) ) .
-                        ')</td></tr></table>'."\n";
+                        ')</label></td></tr></table>'."\n";
                 }
             }
         }

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic