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:
mark_story 2008-11-24 05:23:31 +00:00
parent 04d06bccf8
commit ace8ef4b5a

View file

@ -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});";