mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing event:Selectors implementation for Ajax reloads
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4524 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
770446905a
commit
84a5c14c9b
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ class JavascriptHelper extends AppHelper {
|
|||
$this->_cachedEvents = array();
|
||||
|
||||
if (!empty($rules)) {
|
||||
$data .= "\nEventSelectors.start({\n" . implode(",\n\n", $rules) . "\n});\n";
|
||||
$data .= "\nvar Rules = {\n" . implode(",\n\n", $rules) . "\n}";
|
||||
$data .= "\nEventSelectors.start(Rules);\n";
|
||||
}
|
||||
|
||||
if (!empty($events) || !empty($rules)) {
|
||||
|
|
Loading…
Reference in a new issue