[Svn] r2109 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Wed Dec 3 09:16:44 CET 2008


Author: alec
Date: 2008-12-03 02:16:44 -0600 (Wed, 03 Dec 2008)
New Revision: 2109

Modified:
   trunk/roundcubemail/program/steps/mail/list.inc
   trunk/roundcubemail/program/steps/mail/search.inc
Log:
#1485587: show proper message when using status filter


Modified: trunk/roundcubemail/program/steps/mail/list.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/list.inc	2008-12-03 08:02:32 UTC (rev 2108)
+++ trunk/roundcubemail/program/steps/mail/list.inc	2008-12-03 08:16:44 UTC (rev 2109)
@@ -68,7 +68,13 @@
 
 // add message rows
 if (isset($a_headers) && count($a_headers))
+{
   rcmail_js_message_list($a_headers);
+  if ($search_request)
+    $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count));
+}
+else if ($search_request)
+  $OUTPUT->show_message('searchnomatch', 'notice');
 else
   $OUTPUT->show_message('nomessagesfound', 'notice');
   

Modified: trunk/roundcubemail/program/steps/mail/search.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/search.inc	2008-12-03 08:02:32 UTC (rev 2108)
+++ trunk/roundcubemail/program/steps/mail/search.inc	2008-12-03 08:16:44 UTC (rev 2109)
@@ -99,12 +99,12 @@
 // Make sure we got the headers
 if (!empty($result_h))
 {
+  rcmail_js_message_list($result_h);
   if ($search_str) {
     $_SESSION['search'][$search_request] = $IMAP->get_search_set();
     $_SESSION['last_text_search'] = $str;
+    $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count));
   }
-  rcmail_js_message_list($result_h);
-  $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count));
 }
 else
 {

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list