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

trac at roundcube.net trac at roundcube.net
Tue Mar 9 18:48:56 CET 2010


Author: alec
Date: 2010-03-09 11:48:55 -0600 (Tue, 09 Mar 2010)
New Revision: 3344

Modified:
   trunk/roundcubemail/program/include/rcube_template.php
Log:
- simplify console


Modified: trunk/roundcubemail/program/include/rcube_template.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_template.php	2010-03-09 12:15:35 UTC (rev 3343)
+++ trunk/roundcubemail/program/include/rcube_template.php	2010-03-09 17:48:55 UTC (rev 3344)
@@ -394,8 +394,8 @@
         // add debug console
         if ($this->config['debug_level'] & 8) {
             $this->add_footer('<div id="console" style="position:absolute;top:5px;left:5px;width:405px;padding:2px;background:white;z-index:9000;">
-                <a href="#toggle" onclick="con=document.getElementById(\'dbgconsole\');con.style.display=(con.style.display==\'none\'?\'block\':\'none\');return false">console</a>
-                <form action="/" name="debugform" style="display:inline"><textarea name="console" id="dbgconsole" rows="20" cols="40" wrap="off" style="display:none;width:400px;border:none;font-size:10px" spellcheck="false"></textarea></form></div>'
+                <a href="#toggle" onclick="con=$(\'#dbgconsole\');con[con.is(\':visible\')?\'hide\':\'show\']();return false">console</a>
+                <textarea name="console" id="dbgconsole" rows="20" cols="40" wrap="off" style="display:none;width:400px;border:none;font-size:10px" spellcheck="false"></textarea></div>'
             );
         }
         

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



More information about the Svn mailing list