[Svn] r6054 - in trunk/roundcubemail: . program/js program/steps/mail

trac at roundcube.net trac at roundcube.net
Tue Apr 10 09:02:45 CEST 2012


Author: alec
Date: 2012-04-10 02:02:45 -0500 (Tue, 10 Apr 2012)
New Revision: 6054

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/js/app.js
   trunk/roundcubemail/program/steps/mail/compose.inc
Log:
- Fix so "Back" from compose/show doesn't reset search request (#1488238)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2012-04-08 16:42:50 UTC (rev 6053)
+++ trunk/roundcubemail/CHANGELOG	2012-04-10 07:02:45 UTC (rev 6054)
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix so "Back" from compose/show doesn't reset search request (#1488238)
 - Add option to delete messages instead of moving to Trash when in Junk folder (#1486686)
 - Fix invisible cursor when replying to a html message (#1487073)
 - Reset IP stored in session when destroying session data (#1488056)

Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2012-04-08 16:42:50 UTC (rev 6053)
+++ trunk/roundcubemail/program/js/app.js	2012-04-10 07:02:45 UTC (rev 6054)
@@ -569,7 +569,8 @@
         break;
 
       case 'list':
-        this.reset_qsearch();
+        if (props && props != '')
+          this.reset_qsearch();
         if (this.task == 'mail') {
           this.list_mailbox(props);
           this.set_button_titles();
@@ -857,6 +858,9 @@
           url += '&_mbox='+urlencode(this.env.mailbox);
           if (props)
              url += '&_to='+urlencode(props);
+          // also send search request so we can go back to search result after message is sent
+          if (this.env.search_request)
+            url += '&_search='+this.env.search_request;
         }
         // modify url if we're in addressbook
         else if (this.task == 'addressbook') {

Modified: trunk/roundcubemail/program/steps/mail/compose.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/compose.inc	2012-04-08 16:42:50 UTC (rev 6053)
+++ trunk/roundcubemail/program/steps/mail/compose.inc	2012-04-10 07:02:45 UTC (rev 6054)
@@ -118,7 +118,11 @@
   }
 
   // redirect to a unique URL with all parameters stored in session
-  $OUTPUT->redirect(array('_action' => 'compose', '_id' => $COMPOSE['id']));
+  $OUTPUT->redirect(array(
+    '_action' => 'compose',
+    '_id'     => $COMPOSE['id'],
+    '_search' => $_REQUEST['_search'],
+  ));
 }
 
 



More information about the svn mailing list