From b89fc455357082799ff6559edc55991ec0cb1b52 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 5 Apr 2007 02:34:01 +0000 Subject: fixed set MinChars and Frequency in AutoComplete --- framework/Web/UI/ActiveControls/TAutoComplete.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework') diff --git a/framework/Web/UI/ActiveControls/TAutoComplete.php b/framework/Web/UI/ActiveControls/TAutoComplete.php index f7167feb..bde7d811 100644 --- a/framework/Web/UI/ActiveControls/TAutoComplete.php +++ b/framework/Web/UI/ActiveControls/TAutoComplete.php @@ -339,6 +339,10 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer $options['ResultPanel'] = $this->getResultPanel()->getClientID(); $options['ID'] = $this->getClientID(); $options['EventTarget'] = $this->getUniqueID(); + if(($minchars=$this->getMinChars())!=='') + $options['minchars'] = $minchars; + if(($frequency=$this->getFrequency())!=='') + $options['frequency'] = $frequency; return $options; } -- cgit v1.2.3