From 93955f93f18207c4832d9c4a64d86ade0c6be233 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 5 Jun 2009 12:50:47 -0600 Subject: [PATCH] Clean up attachment icon display in preview --- imp/js/src/DimpBase.js | 14 +++++--------- imp/templates/index/index-dimp.inc | 1 - 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index fe065bba2..c171b390d 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -924,7 +924,7 @@ var DimpBase = { _loadPreviewCallback: function(resp) { - var ppuid, row, search, tmp, tmp2, + var ppuid, row, search, tmp, pm = $('previewMsg'), r = resp.response, t = $('msgHeadersContent').down('THEAD'); @@ -991,18 +991,14 @@ var DimpBase = { }); // Add attachment information - $('toggleHeaders').select('.attachmentImage').invoke(r.atc_label ? 'show' : 'hide'); if (r.atc_label) { - tmp = $('msgAtc').show().down('.label'); - tmp2 = $('partlist'); - tmp2.hide().previous().update(new Element('SPAN', { className: 'atcLabel' }).insert(r.atc_label)).insert(r.atc_download); + $('msgAtc').show(); + tmp = $('partlist'); + tmp.hide().previous().update(new Element('SPAN', { className: 'atcLabel' }).insert(r.atc_label)).insert(r.atc_download); if (r.atc_list) { $('partlist_col').show(); $('partlist_exp').hide(); - tmp.down().hide().next().show(); - tmp2.down('TABLE').update(r.atc_list); - } else { - tmp.down().show().next().hide(); + tmp.down('TABLE').update(r.atc_list); } } else { $('msgAtc').hide(); diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index 3c6f05cd7..61833bacd 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -259,7 +259,6 @@ function _simpleButton($id, $text, $image, $imagedir = null)
"> -
"> -- 2.11.0