From: Michael M Slusarz Date: Fri, 20 Feb 2009 08:10:03 +0000 (-0700) Subject: Fix priority image display in preview window X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4ffc2a60d1dbe2983a120d9f2c708e57106c34ee;p=horde.git Fix priority image display in preview window --- diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index cc69d2dda..6696c0ca0 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -931,7 +931,7 @@ var DimpBase = { switch (r.priority) { case 'high': case 'low': - tmp.invoke('insert', { top: $($(r.priority + '_priority_img').cloneNode(false)).writeAttribute('id', false) }); + tmp.invoke('insert', { top: new Element('SPAN').addClassName('status' + r.priority.capitalize() + 'Priority') }); break; } diff --git a/imp/js/src/DimpCore.js b/imp/js/src/DimpCore.js index dec9badde..d6309ef47 100644 --- a/imp/js/src/DimpCore.js +++ b/imp/js/src/DimpCore.js @@ -273,7 +273,7 @@ DimpCore = { if (tmp.down().hasClassName('hordeNoalerts')) { tmp.down().remove(); } - tmp.insert(new Element('LI').insert(new Element('P', { className: 'label' }).insert(log)).insert(new Element('P', { className: 'indent' }).insert(msg).insert(new Element('SPAN', { className: 'alertdate'}).insert('[' + (new Date).toLocaleString() + ']')))); + tmp.insert(new Element('LI').insert(new Element('P', { className: 'label' }).insert(log)).insert(new Element('P', { className: 'indent' }).insert(msg).insert(new Element('SPAN', { className: 'alertdate'} ).insert('[' + (new Date).toLocaleString() + ']')))); } } } diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index 7761df8ab..82ee6c762 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -110,11 +110,13 @@ div.msgStatus, div.msgFrom, div.msgSubject, div.msgDate, div.msgSize { div.msgStatus { width: 8%; } -div.msgStatus div { +div.msgStatus div, #msgHeadersContent .subject span { display: inline-block; padding-right: 2px; width: 16px; + height: 16px; background-repeat: no-repeat; + vertical-align: inherit; } div.msgFrom { width: 20%; @@ -237,10 +239,10 @@ div.msgSize { .msglist div.statusDeleted { background-image: url("graphics/mail_deleted.png"); } -.msglist div.statusLowPriority { +.msglist div.statusLowPriority, #msgHeadersContent span.statusLowPriority { background-image: url("graphics/mail_priority_low.png"); } -.msglist div.statusHighPriority { +.msglist div.statusHighPriority, #msgHeadersContent span.statusHighPriority { background-image: url("graphics/mail_priority_high.png"); } .msglist div.statusAnswered {