Add select all checkbox to make more consistent with imp UI design
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 12 Nov 2010 18:39:30 +0000 (11:39 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 12 Nov 2010 20:22:47 +0000 (13:22 -0700)
imp/js/dimpbase.js
imp/templates/dimp/index.inc
imp/themes/dimp/screen.css
imp/themes/graphics/tick.png [deleted file]
imp/themes/silver/dimp/screen.css
imp/themes/silver/graphics/tick.png [deleted file]

index b95f590..1467ef4 100644 (file)
@@ -880,10 +880,6 @@ var DimpBase = {
             this.flag('\\deleted', false);
             break;
 
-        case 'oa_selectall':
-            this.selectAll();
-            break;
-
         case 'oa_purge_deleted':
             this.purgeDeleted();
             break;
@@ -2105,7 +2101,12 @@ var DimpBase = {
                 return;
 
             case 'msglistHeader':
-                this.sort(e.element().retrieve('sortby'));
+                tmp = e.element();
+                if (tmp.hasClassName('msCheck')) {
+                    this.selectAll();
+                } else {
+                    this.sort(tmp.retrieve('sortby'));
+                }
                 e.stop();
                 return;
 
index 67a2e6f..a4cab85 100644 (file)
@@ -157,7 +157,9 @@ function _simpleButton($id, $text, $image, $nodisplay = false)
     </div>
 
      <div id="msglistHeader" class="item">
-      <div class="iconImg msgStatus"></div>
+      <div class="iconImg msgStatus">
+       <div class="iconImg msCheck" title="<?php echo _("Select All") ?>"></div>
+      </div>
       <div class="msgFrom sep"></div>
       <div class="msgSubject sep"></div>
       <div class="msgDate sep"></div>
@@ -424,8 +426,6 @@ function _simpleButton($id, $text, $image, $nodisplay = false)
  </div>
 <?php endif; ?>
 <?php endif; ?>
- <div class="sep"></div>
- <a id="oa_selectall"><span class="iconImg"></span><?php echo _("Select All") ?></a>
 <?php if (!$use_trash): ?>
  <div class="sep"></div>
  <a id="oa_purge_deleted"><span class="iconImg"></span><?php echo _("Purge Deleted") ?></a>
index d3831ce..470bb6f 100644 (file)
@@ -977,9 +977,6 @@ span.dimpactionResume {
 #oa_layout_vert span.iconImg {
     background-image: url("../graphics/application_tile_horizontal.png");
 }
-#oa_selectall span.iconImg {
-    background-image: url("../graphics/tick.png");
-}
 #ctx_folder_create span.iconImg, #ctx_container_create span.iconImg, #ctx_folderopts_new span.iconImg {
     background-image: url("../graphics/folders/create.png");
 }
diff --git a/imp/themes/graphics/tick.png b/imp/themes/graphics/tick.png
deleted file mode 100644 (file)
index 816919d..0000000
Binary files a/imp/themes/graphics/tick.png and /dev/null differ
index 1c81a90..c032416 100644 (file)
@@ -118,9 +118,6 @@ span.dimpactionEditsearch {
 #oa_layout_vert span.iconImg {
     background-image: url("../graphics/application_tile_horizontal.png");
 }
-#oa_selectall span.iconImg {
-    background-image: url("../graphics/tick.png");
-}
 #ctx_folder_create span.iconImg, #ctx_container_create span.iconImg, #ctx_folderopts_new span.iconImg {
     background-image: url("../graphics/folders/create.png");
 }
diff --git a/imp/themes/silver/graphics/tick.png b/imp/themes/silver/graphics/tick.png
deleted file mode 100644 (file)
index 917d93f..0000000
Binary files a/imp/themes/silver/graphics/tick.png and /dev/null differ