summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveControlAdapter.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveControlAdapter.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveControlAdapter.php b/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
index 2409d9fe..1cdd5d73 100644
--- a/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
+++ b/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
@@ -14,9 +14,11 @@ class TActiveControlAdapter extends TControlAdapter
{
if(!self::$_renderedPosts)
{
+ $cs = $this->getPage()->getClientScript();
+ $cs->registerPradoScript('ajax');
$options = TJavascript::encode($this->getPage()->getPostDataLoaders(),false);
$script = "Prado.CallbackRequest.PostDataLoaders = {$options};";
- $this->getPage()->getClientScript()->registerEndScript(get_class($this), $script);
+ $cs->registerEndScript(get_class($this), $script);
self::$_renderedPosts = true;
}
parent::render($writer);