Only show unread messages bold. It doesn't make much sense, but the viewport data...
authorJan Schneider <jan@horde.org>
Mon, 29 Nov 2010 18:00:59 +0000 (19:00 +0100)
committerJan Schneider <jan@horde.org>
Mon, 29 Nov 2010 18:00:59 +0000 (19:00 +0100)
imp/js/mobile.js
imp/themes/default/mobile.css

index 9ee2dba..d34d1dc 100644 (file)
@@ -69,11 +69,17 @@ var ImpMobile = {
      */
     mailboxLoaded: function(r)
     {
-        var list = $('#imp-mailbox-list');
+        var list = $('#imp-mailbox-list'), c, l;
         if (r && r.ViewPort) {
             $.each(r.ViewPort.data, function(key, data) {
+                c = 'imp-message';
+                if (data.flag) {
+                    $.each(data.flag, function(k, flag) {
+                        c += ' imp-message-' + flag.substr(1);
+                    });
+                }
                 list.append(
-                    $('<li class="imp-message" data-imp-mailbox="' + data.view + '" data-imp-uid="' + data.imapuid + '">').append(
+                    $('<li class="' + c + '" data-imp-mailbox="' + data.view + '" data-imp-uid="' + data.imapuid + '">').append(
                         $('<h3>').append(
                             $('<a href="#">').html(data.subject))).append(
                         $('<div class="ui-grid-a">').append(
index cb1dde2..b9a3693 100644 (file)
     font-weight: normal;
     text-align: center;
 }
+.imp-message h3 {
+    font-weight: normal;
+}
+.imp-message-seen h3 {
+    font-weight: bold;
+}
 
 /* Message */
 #message .ui-body-c {