summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TJavascriptLogger.php
diff options
context:
space:
mode:
authorwei <>2006-10-06 03:44:07 +0000
committerwei <>2006-10-06 03:44:07 +0000
commitde630e4134484cea82fd0a1864a45db3bd9974bc (patch)
tree4fffaedcb5b1cad09223ca19a0a3f69fe50335a8 /framework/Web/UI/WebControls/TJavascriptLogger.php
parent6737b5ab5d32a8d53bcb41a473946f82334fc4e9 (diff)
update js logger and make TComponent::ensureEnum show available values during exception.
Diffstat (limited to 'framework/Web/UI/WebControls/TJavascriptLogger.php')
-rw-r--r--framework/Web/UI/WebControls/TJavascriptLogger.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TJavascriptLogger.php b/framework/Web/UI/WebControls/TJavascriptLogger.php
index 3a294b6b..a873d8d8 100644
--- a/framework/Web/UI/WebControls/TJavascriptLogger.php
+++ b/framework/Web/UI/WebControls/TJavascriptLogger.php
@@ -57,8 +57,9 @@ class TJavascriptLogger extends TWebControl
public function renderContents($writer)
{
$info = '(<a href="http://gleepglop.com/javascripts/logger/" target="_blank">more info</a>).';
- $usage = 'Press ALT-D (Or CTRL-D on OS X) to toggle the javascript log console';
- $writer->write("{$usage} {$info}");
+ $link = '<a href="javascript:if(logConsole)logConsole.toggle()">toggle the javascript log console.</a>';
+ $usage = 'Press ALT-D (Or CTRL-D on OS X) to';
+ $writer->write("{$usage} {$link} {$info}");
}
}