mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +00:00
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
This commit is contained in:
parent
261ff6f219
commit
4b022122d1
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ class AjaxHelper extends AppHelper {
|
||||||
$options = $this->_optionsToString($options, array('paramName', 'indicator'));
|
$options = $this->_optionsToString($options, array('paramName', 'indicator'));
|
||||||
$options = $this->_buildOptions($options, $this->autoCompleteOptions);
|
$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->Html->div(null, '', $divOptions) . "\n" .
|
||||||
$this->Javascript->codeBlock("{$var}new Ajax.Autocompleter('" . $htmlOptions['id']
|
$this->Javascript->codeBlock("{$var}new Ajax.Autocompleter('" . $htmlOptions['id']
|
||||||
. "', '" . $divOptions['id'] . "', '" . $this->Html->url($url) . "', " .
|
. "', '" . $divOptions['id'] . "', '" . $this->Html->url($url) . "', " .
|
||||||
|
|
Loading…
Add table
Reference in a new issue