Show 'more..' entry if there are more messages in the mailbox. Doesn't do anything...
authorJan Schneider <jan@horde.org>
Mon, 29 Nov 2010 17:58:56 +0000 (18:58 +0100)
committerJan Schneider <jan@horde.org>
Mon, 29 Nov 2010 17:58:56 +0000 (18:58 +0100)
imp/js/mobile.js
imp/templates/mobile/javascript_defs.php
imp/themes/default/mobile.css

index b45e0c4..9ee2dba 100644 (file)
@@ -82,6 +82,10 @@ var ImpMobile = {
                             $('<div class="ui-block-b">').append(
                                 $('<p align="right">').text(data.date)))));
             });
+            l = list.children().length;
+            if (r.ViewPort.totalrows > l) {
+                list.append('<li id="imp-mailbox-more">' + IMP.text.more_messages.replace('%d', r.ViewPort.totalrows - l) + '</li>');
+            }
             list.listview('refresh');
         }
     },
index 893be27..8b95a04 100644 (file)
@@ -78,6 +78,7 @@ $code['conf'] = array_filter(array(
 
 /* Gettext strings used in core javascript files. */
 $code['text'] = array(
+    'more_messages' => _("%d more messages..."),
 );
 
 Horde::addInlineJsVars(array(
index 97c3257..cb1dde2 100644 (file)
@@ -6,6 +6,10 @@
 #mailbox .ui-grid-a .ui-li-desc {
     margin: 0;
 }
+#imp-mailbox-more {
+    font-weight: normal;
+    text-align: center;
+}
 
 /* Message */
 #message .ui-body-c {