X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fajax.inc;h=f71aaf47c987b2773af02ce0dd0e9ff506e39974;hb=9451db1760036985de791ba24c442801e37f37de;hp=a018b12f9604c040ce4ccde34f0f65cd0a6a1eee;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/includes/ajax.inc b/includes/ajax.inc index a018b12f..f71aaf47 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ require_once($path_to_root. "/includes/JsHttpRequest.php"); @@ -18,7 +18,7 @@ class Ajax extends JsHttpRequest { function Ajax() { - $this->JsHttpRequest($_SESSION['language']->encoding); + $this->JsHttpRequest(@$_SESSION['language']->encoding); } // // This function is used in ctrl routines to activate @@ -132,8 +132,8 @@ 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 - $cmds[] = $cmd; break; + if ($cmd['n'] == 'fc' || $cmd['n'] == 'js') { // save focus + $cmds[] = $cmd; //break; } } $this->aCommands = $cmds; @@ -159,4 +159,3 @@ function absolute_url($url) { return strpos($url, '..')===0 ? dirname($_SERVER['PHP_SELF']).'/'.$url : $url; } -?>