mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
"Fixes #3549, AjaxHelper::sortable update and change invalid options for script.aculo.us"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6222 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2dc9b33d18
commit
46f0615479
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class AjaxHelper extends AppHelper {
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
var $sortOptions = array('tag', 'only', 'overlap', 'constraint', 'containment', 'handle', 'hoverclass', 'ghosting', 'dropOnEmpty', 'scroll', 'scrollSensitivity', 'scrollSpeed', 'tree', 'treeTag', 'onUpdate', 'onChange', 'update', 'change');
|
||||
var $sortOptions = array('tag', 'only', 'overlap', 'constraint', 'containment', 'handle', 'hoverclass', 'ghosting', 'dropOnEmpty', 'scroll', 'scrollSensitivity', 'scrollSpeed', 'tree', 'treeTag', 'onUpdate', 'onChange', 'update');
|
||||
/**
|
||||
* Options for slider.
|
||||
*
|
||||
|
@ -649,7 +649,7 @@ class AjaxHelper extends AppHelper {
|
|||
$options['onUpdate'] = 'function(sortable) {' . $this->remoteFunction($options) . '}';
|
||||
}
|
||||
|
||||
$options = $this->_optionsToString($options, array('tag', 'constraint', 'only', 'handle', 'hoverclass', 'scroll', 'tree', 'treeTag'));
|
||||
$options = $this->_optionsToString($options, array('tag', 'constraint', 'only', 'handle', 'hoverclass', 'scroll', 'tree', 'treeTag', 'update'));
|
||||
$options = $this->_buildOptions($options, $this->sortOptions);
|
||||
return $this->Javascript->codeBlock("Sortable.create('$id', $options);");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue