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:
nate 2007-02-15 20:40:26 +00:00
parent 770446905a
commit 84a5c14c9b

View file

@ -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)) {