From e53aff8b7fc52e2cc989be882f43799c0963dc0f Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 7 Nov 2010 19:22:35 +0000 Subject: [PATCH] Enabled javascript updats on ajax _page_body refresh. --- CHANGELOG.txt | 2 ++ includes/ajax.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6a99aebb..d36be8b2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -33,6 +33,8 @@ $ /includes/ui/ui_controls.inc /reporting/includes/pdf_report.inc # Fixed multipart mail structure $ /reporting/includes/class.mail.inc +# Enabled javascript updates on ajax _page_body refresh +$ /includes/ajax.inc 06-Nov-2010 Janusz Dobrowolski # [0000274] Contact edition failed after last security fixes in RC2 diff --git a/includes/ajax.inc b/includes/ajax.inc index ecee59cd..096d2391 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -132,7 +132,7 @@ class Ajax extends JsHttpRequest { if($com['n'] == 'up' && $com['t'] == '_page_body') { $cmds = array($com); foreach( $this->aCommands as $k=> $cmd) { - if ($cmd['n'] == 'fc') { // save focus + if ($cmd['n'] == 'fc' || $cmd['n'] == 'js') { // save focus $cmds[] = $cmd; //break; } } -- 2.30.2