]> 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 5e1440401035e1e042a274deb169c17040a05109..744565ad24bbb89a90e9268aa1a4b7faa1f950cf 100644 (file)
@@ -3,10 +3,9 @@
  * TAutoComplete class file.
  *
  * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2013 PradoSoft
- * @license http://www.pradosoft.com/license/
- * @version $Id: TAutoComplete.php 3245 2013-01-07 20:23:32Z ctrlaltca $
+ * @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
  */
 
@@ -19,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}
@@ -77,9 +79,9 @@ Prado::using('System.Web.UI.ActiveControls.TCallbackEventParameter');
  * "informal" are ignored as text for suggestions.
  *
  * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @version $Id: TAutoComplete.php 3245 2013-01-07 20:23:32Z ctrlaltca $
  * @package System.Web.UI.ActiveControls
  * @since 3.1
+ * @deprecated Use TJuiAutoComplete instead
  */
 class TAutoComplete extends TActiveTextBox implements INamingContainer
 {
@@ -276,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);
        }
@@ -375,7 +378,6 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer
  * suggestion selected by the user, -1 if not suggestion is selected.
  *
  * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @version $Id: TAutoComplete.php 3245 2013-01-07 20:23:32Z ctrlaltca $
  * @package System.Web.UI.ActiveControls
  * @since 3.1
  */
@@ -416,7 +418,6 @@ class TAutoCompleteEventParameter extends TCallbackEventParameter
  * item template.
  *
  * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @version $Id: TAutoComplete.php 3245 2013-01-07 20:23:32Z ctrlaltca $
  * @package System.Web.UI.ActiveControls
  * @since 3.1
  */