[Svn] r5471 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Wed Nov 23 18:40:28 CET 2011


Author: thomasb
Date: 2011-11-23 11:40:28 -0600 (Wed, 23 Nov 2011)
New Revision: 5471

Modified:
   trunk/roundcubemail/program/include/rcube_template.php
Log:
Improve task switching for tasks added by plugins

Modified: trunk/roundcubemail/program/include/rcube_template.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_template.php	2011-11-23 17:29:03 UTC (rev 5470)
+++ trunk/roundcubemail/program/include/rcube_template.php	2011-11-23 17:40:28 UTC (rev 5471)
@@ -915,6 +915,7 @@
             // make valid href to specific buttons
             if (in_array($attrib['command'], rcmail::$main_tasks)) {
                 $attrib['href'] = rcmail_url(null, null, $attrib['command']);
+                $attrib['onclick'] = sprintf("%s.switch_task('%s');return false", JS_OBJECT_NAME, $attrib['command']);
             }
             else if ($attrib['task'] && in_array($attrib['task'], rcmail::$main_tasks)) {
                 $attrib['href'] = rcmail_url($attrib['command'], null, $attrib['task']);

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



More information about the Svn mailing list