From 4f968c045e0d09ab3e4f659743effb5305a963ce Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 05:04:30 +0000 Subject: Fixed #507 and update other active controls. --- framework/Web/UI/ActiveControls/TAutoComplete.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TAutoComplete.php') diff --git a/framework/Web/UI/ActiveControls/TAutoComplete.php b/framework/Web/UI/ActiveControls/TAutoComplete.php index 07fa652b..f94a826f 100644 --- a/framework/Web/UI/ActiveControls/TAutoComplete.php +++ b/framework/Web/UI/ActiveControls/TAutoComplete.php @@ -270,7 +270,7 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer /** * @return array list of callback options. */ - protected function getAutoCompleteOptions() + protected function getPostBackOptions() { $this->getActiveControl()->getClientSide()->setEnablePageStateUpdate(false); $options = array(); @@ -282,7 +282,7 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer } if($this->getAutoPostBack()) { - $options = array_merge($options,$this->getPostBackOptions()); + $options = array_merge($options,parent::getPostBackOptions()); $options['AutoPostBack'] = true; } $options['ResultPanel'] = $this->getResultPanel()->getClientID(); @@ -299,19 +299,6 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer { } - /** - * Ensure that the ID attribute is rendered and registers the javascript code - * for initializing the active control. - */ - - public function addAttributesToRender($writer) - { - parent::addAttributesToRender($writer); - $writer->addAttribute('id',$this->getClientID()); - $this->getActiveControl()->registerCallbackClientScript( - $this->getClientClassName(), $this->getAutoCompleteOptions()); - } - /** * @return string corresponding javascript class name for this TActiveButton. */ -- cgit v1.2.3