summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
diff options
context:
space:
mode:
authorwei <>2006-05-07 09:47:15 +0000
committerwei <>2006-05-07 09:47:15 +0000
commit12c16fb3c7314b51d74dcaffdca4d311c6fad8c0 (patch)
treeef82b73e3a2fa5f8f313a43ce3dcaaf39f569d8f /framework/Web/UI/ActiveControls/TActiveControlAdapter.php
parenta7f6c6640ac9295eec3ae2edbb2250179eb85e33 (diff)
Adding TAutoComplete
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);