From 12c16fb3c7314b51d74dcaffdca4d311c6fad8c0 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 7 May 2006 09:47:15 +0000 Subject: Adding TAutoComplete --- framework/Web/UI/ActiveControls/TActiveControlAdapter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/ActiveControls/TActiveControlAdapter.php') 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); -- cgit v1.2.3