summaryrefslogtreecommitdiff
path: root/program/include/rcube_template.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-09 17:48:55 +0000
committeralecpl <alec@alec.pl>2010-03-09 17:48:55 +0000
commitfe7d78ab5584106eb3236f6123ea86691ea313d6 (patch)
tree881cb52979782a2bea299b32fa98340758c7ec27 /program/include/rcube_template.php
parent4d81544057bae4fcacaa20b629a159f625c7de4d (diff)
- simplify console
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-xprogram/include/rcube_template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index a37adc28b..6de32722c 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -394,8 +394,8 @@ class rcube_template extends rcube_html_page
// 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>'
);
}