]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/Web/UI/ActiveControls/TAutoComplete.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / Web / UI / ActiveControls / TAutoComplete.php
index 88b98172f7fe68a4e33ba73def90621d99661ca5..744565ad24bbb89a90e9268aa1a4b7faa1f950cf 100644 (file)
@@ -3,9 +3,9 @@
  * TAutoComplete class file.
  *
  * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright &copy; 2005-2016 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
  * @package System.Web.UI.ActiveControls
  */
 
@@ -18,6 +18,9 @@ Prado::using('System.Web.UI.ActiveControls.TCallbackEventParameter');
 /**
  * TAutoComplete class.
  *
+ * Warning: this class is deprecatd and will be removed in a future release.
+ * We suggest you to investigate using {@link TJuiAutoComplete} instead.
+ *
  * TAutoComplete is a textbox that provides a list of suggestion on
  * the current partial word typed in the textbox. The suggestions are
  * requested using callbacks, and raises the {@link onSuggestion OnSuggestion}
@@ -78,6 +81,7 @@ Prado::using('System.Web.UI.ActiveControls.TCallbackEventParameter');
  * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
  * @package System.Web.UI.ActiveControls
  * @since 3.1
+ * @deprecated Use TJuiAutoComplete instead
  */
 class TAutoComplete extends TActiveTextBox implements INamingContainer
 {
@@ -274,11 +278,12 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer
        }
 
        /**
-        * Renders the end tag and registers javascript effects library.
+        * Renders the end tag and registers the needed javascript library.
         */
        public function renderEndTag($writer)
        {
-               $this->getPage()->getClientScript()->registerPradoScript('effects');
+               $cs=$this->getPage()->getClientScript();
+               $cs->registerPradoScript('autocomplete');
                parent::renderEndTag($writer);
                $this->renderResultPanel($writer);
        }