diff options
author | xue <> | 2006-04-19 02:31:18 +0000 |
---|---|---|
committer | xue <> | 2006-04-19 02:31:18 +0000 |
commit | 20f7dfe3340eb1ada7a96e4c24704ecb9445e8d9 (patch) | |
tree | 7de658026ef12a8b360026b9662e2dc34e10aa52 | |
parent | 8882b9e6ee59f9e16e6a8d2ca5f2e765ab201317 (diff) |
Fixed #137.
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/TJavascriptLogger.php | 11 |
2 files changed, 10 insertions, 2 deletions
@@ -2,6 +2,7 @@ Version 3.0.0 May 1, 2006 =========================
BUG: Ticket#131 - TImageMap and TLinkButton continue to postback even client validator fails (Wei)
BUG: Ticket#135 - TBrowserLogRoute reports wrong timings (Qiang)
+BUG: Ticket#137 - The JavasciptLogger does not work (Qiang)
BUG: Non-control components can now use expressions in their properties (Qiang)
BUG: TControl.Visible did not make use of overriden getVisible() (Qiang)
BUG: TWizard did not stop navigation upon a validation failure (Qiang)
diff --git a/framework/Web/UI/WebControls/TJavascriptLogger.php b/framework/Web/UI/WebControls/TJavascriptLogger.php index 3196d3b6..0296a276 100644 --- a/framework/Web/UI/WebControls/TJavascriptLogger.php +++ b/framework/Web/UI/WebControls/TJavascriptLogger.php @@ -41,17 +41,24 @@ class TJavascriptLogger extends TWebControl }
/**
+ * Registers the required logger javascript.
+ * @param TEventParameter event parameter
+ */
+ public function onPreRender($param)
+ {
+ $this->getPage()->getClientScript()->registerPradoScript('logger');
+ }
+
+ /**
* Register the required javascript libraries and
* display some general usage information.
* @param THtmlWriter the writer used for the rendering purpose
*/
public function renderContents($writer)
{
- $this->getPage()->getClientScript()->registerPradoScript('logger');
$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}");
- parent::renderContents($writer);
}
}
|