Add effect when showing/hiding attachment list.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 17:40:22 +0000 (10:40 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 19:37:20 +0000 (12:37 -0700)
imp/js/src/DimpBase.js
imp/js/src/DimpCore.js
imp/templates/chunks/message.php
imp/templates/index/index.inc

index eff17af..33967cd 100644 (file)
@@ -907,7 +907,7 @@ var DimpBase = {
                 $('partlist_col').show();
                 $('partlist_exp').hide();
                 tmp.down().hide().next().show();
-                tmp2.update(r.atc_list);
+                tmp2.down('TABLE').update(r.atc_list);
             } else {
                 tmp.down().show().next().hide();
             }
index 60ec52b..6dfbb36 100644 (file)
@@ -427,7 +427,6 @@ DimpCore = {
             base = elt;
         }
 
-        alist.each(function(o, i) {
             var a, t;
             if (o.raw) {
                 a = o.raw;
index f1607a5..22f743e 100644 (file)
@@ -73,9 +73,11 @@ function _createDAfmsg($text, $image, $id, $class = '', $show_text = true)
          <td>
           <span class="atcLabel"><?php echo $show_msg_result['atc_label'] ?></span><?php echo $show_msg_result['atc_download'] ?>
 <?php if (isset($show_msg_result['atc_list'])): ?>
-          <table id="partlist" cellspacing="2" style="display:none">
-           <?php echo $show_msg_result['atc_list'] ?>
-          </table>
+          <div id="partlist" style="display:none">
+           <table cellspacing="2">
+            <?php echo $show_msg_result['atc_list'] ?>
+           </table>
+          </div>
 <?php endif; ?>
          </td>
         </tr>
index f532b5f..a2f78a5 100644 (file)
@@ -319,8 +319,9 @@ function _simpleButton($id, $text, $image, $imagedir = null)
              <td class="label"><span class="iconImg attachmentImg attachmentImage"></span><a id="partlist_toggle"><span class="iconImg arrowcollapsedImg" id="partlist_col"></span><span class="iconImg arrowexpandedImg" id="partlist_exp" style="display:none"></span></a></td>
              <td>
               <div></div>
-              <table id="partlist" style="display:none" cellspacing="2">
-              </table>
+              <div id="partlist" style="display:none">
+               <table cellspacing="2"></table>
+              </div>
              </td>
             </tr>
            </thead>