summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-12-02 19:02:07 +0100
committerFabio Bas <ctrlaltca@gmail.com>2013-12-02 19:02:07 +0100
commita4e70ee8fd4105ae3a87349ba3fa69d90bdb54f6 (patch)
tree0e33e57fd19f45783bc3bd49f269065f8acc8ab4 /framework/Web
parentf8dc127ed15cfc9f7894e20fbdb69cac4a51ca9a (diff)
Avoid rendering <script> blocks in callbacks
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TClientScriptManager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index a9f6c5b4..fd550ff1 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -729,8 +729,11 @@ class TClientScriptManager extends TApplicationComponent
*/
public function flushScriptFiles($writer, $control=null)
{
- $this->_page->ensureRenderInForm($control);
- $this->renderAllPendingScriptFiles($writer);
+ if(!$this->_page->getIsCallback())
+ {
+ $this->_page->ensureRenderInForm($control);
+ $this->renderAllPendingScriptFiles($writer);
+ }
}
/**