mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
5bc14621ca
commit
d6bf52dce7
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue