mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding fix for AjaxHelper::drag() (Ticket #1906), and adding AjaxHelper test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4369 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
0698b9cdf6
commit
8ed5dc6694
1 changed files with 2 additions and 3 deletions
|
@ -522,9 +522,8 @@ class AjaxHelper extends AppHelper {
|
|||
$var = 'var ' . $options['var'] . ' = ';
|
||||
unset($options['var']);
|
||||
}
|
||||
$options = $this->_optionsToString($options, array('handle', 'constraint'));
|
||||
$options = $this->_buildOptions($options, $this->dragOptions);
|
||||
return $this->Javascript->codeBlock("{$var}new Draggable('$id', " . $this->_optionsForDraggable($options) . ");");
|
||||
$options = $this->_buildOptions($this->_optionsToString($options, array('handle', 'constraint')), $this->dragOptions);
|
||||
return $this->Javascript->codeBlock("{$var}new Draggable('$id', " .$options . ");");
|
||||
}
|
||||
/**
|
||||
* For a reference on the options for this function, check out
|
||||
|
|
Loading…
Add table
Reference in a new issue