From 4b022122d1b19de425caa35755f101938c662e2f Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 14 Mar 2007 20:47:39 +0000 Subject: [PATCH] Updating AjaxHelper::autoComplete() for new API git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4611 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/ajax.php b/cake/libs/view/helpers/ajax.php index 122429640..84dcbdb5b 100644 --- a/cake/libs/view/helpers/ajax.php +++ b/cake/libs/view/helpers/ajax.php @@ -457,7 +457,7 @@ class AjaxHelper extends AppHelper { $options = $this->_optionsToString($options, array('paramName', 'indicator')); $options = $this->_buildOptions($options, $this->autoCompleteOptions); - return $this->Html->input($field, $htmlOptions) . "\n" . + return $this->Form->text($field, $htmlOptions) . "\n" . $this->Html->div(null, '', $divOptions) . "\n" . $this->Javascript->codeBlock("{$var}new Ajax.Autocompleter('" . $htmlOptions['id'] . "', '" . $divOptions['id'] . "', '" . $this->Html->url($url) . "', " .