Fix priority image display in preview window
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Feb 2009 08:10:03 +0000 (01:10 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Feb 2009 08:10:03 +0000 (01:10 -0700)
imp/js/src/DimpBase.js
imp/js/src/DimpCore.js
imp/themes/screen-dimp.css

index cc69d2d..6696c0c 100644 (file)
@@ -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;
         }
 
index dec9bad..d6309ef 100644 (file)
@@ -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() + ']'))));
                     }
                 }
             }
index 7761df8..82ee6c7 100644 (file)
@@ -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 {