Apply and remove the "read" class, when marking something as read using 
JS, so that there's a change of appearance without a pageload.

        Patch by fu. 

diffs (14 lines):

diff -r 3407797b6f9f -r d157ea166cf2 htdocs/js/esn_inbox.js
--- a/htdocs/js/esn_inbox.js    Mon Feb 21 18:32:39 2011 +0800
+++ b/htdocs/js/esn_inbox.js    Mon Feb 21 19:24:45 2011 +0800
@@ -345,8 +345,10 @@ ESN_Inbox.finishedUpdate = function (inf
             if (read) {
                 DOM.removeClassName(titleElement, "InboxItem_Unread");
                 DOM.addClassName(titleElement, "InboxItem_Read");
+                DOM.addClassName(titleElement, "read");
             } else {
                 DOM.removeClassName(titleElement, "InboxItem_Read");
+                DOM.removeClassName(titleElement, "read");
                 DOM.addClassName(titleElement, "InboxItem_Unread");
             }
         }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to