Adding fix from #2872, $ajax->afterRender() has no decoding

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5407 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-07-08 18:06:44 +00:00
parent 5bc14621ca
commit d6bf52dce7

View file

@ -852,7 +852,7 @@ class AjaxHelper extends AppHelper {
}
}
$out = 'var __ajaxUpdater__ = {' . join(", \n", $data) . '};' . "\n";
$out .= 'for (n in __ajaxUpdater__) { if (typeof __ajaxUpdater__[n] == "string" && $(n)) Element.update($(n), unescape(__ajaxUpdater__[n])); }';
$out .= 'for (n in __ajaxUpdater__) { if (typeof __ajaxUpdater__[n] == "string" && $(n)) Element.update($(n), unescape(decodeURIComponent(__ajaxUpdater__[n]))); }';
e($this->Javascript->codeBlock($out, false));
}