mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Applying patch from 'tyler'. Updates Ajax helper to reflect updated scriptaculous API. See http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor. Fixes #5790
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7885 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
04d06bccf8
commit
ace8ef4b5a
1 changed files with 3 additions and 3 deletions
|
@ -118,8 +118,8 @@ class AjaxHelper extends AppHelper {
|
|||
var $editorOptions = array(
|
||||
'okText', 'cancelText', 'savingText', 'formId', 'externalControl', 'rows', 'cols', 'size',
|
||||
'highlightcolor', 'highlightendcolor', 'savingClassName', 'formClassName', 'loadTextURL',
|
||||
'loadingText', 'callback', 'ajaxOptions', 'clickToEditText', 'collection', 'okButton',
|
||||
'cancelLink', 'submitOnBlur'
|
||||
'loadingText', 'callback', 'ajaxOptions', 'clickToEditText', 'collection', 'okControl',
|
||||
'cancelControl', 'submitOnBlur'
|
||||
);
|
||||
/**
|
||||
* Options for auto-complete editor.
|
||||
|
@ -682,7 +682,7 @@ class AjaxHelper extends AppHelper {
|
|||
$options = $this->_optionsToString($options, array(
|
||||
'okText', 'cancelText', 'savingText', 'formId', 'externalControl', 'highlightcolor',
|
||||
'highlightendcolor', 'savingClassName', 'formClassName', 'loadTextURL', 'loadingText',
|
||||
'clickToEditText', 'okButton', 'cancelLink'
|
||||
'clickToEditText', 'okControl', 'cancelControl'
|
||||
));
|
||||
$options = $this->_buildOptions($options, $this->editorOptions);
|
||||
$script = "{$var}new Ajax.{$type}('{$id}', '{$url}', {$options});";
|
||||
|
|
Loading…
Reference in a new issue