From 098556f20a2014f8ca211b0820cfa4776052641b Mon Sep 17 00:00:00 2001
From: ctrlaltca <>
Date: Fri, 18 May 2012 18:00:24 +0000
Subject: fix #401
---
framework/Web/UI/WebControls/TClientScript.php | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
(limited to 'framework/Web/UI/WebControls')
diff --git a/framework/Web/UI/WebControls/TClientScript.php b/framework/Web/UI/WebControls/TClientScript.php
index 325105bc..4736df0e 100644
--- a/framework/Web/UI/WebControls/TClientScript.php
+++ b/framework/Web/UI/WebControls/TClientScript.php
@@ -132,9 +132,16 @@ class TClientScript extends TControl
{
if($this->getHasControls())
{
- $writer->write("\n");
+ if($this->getPage()->getIsCallback())
+ {
+ $extWriter= $this->getPage()->getResponse()->createHtmlWriter();
+ $this->renderChildren($extWriter);
+ $this->getPage()->getCallbackClient()->appendScriptBlock($extWriter);
+ } else {
+ $writer->write("\n");
+ }
}
}
}
--
cgit v1.2.3