Fixed problem with too early SysPrefs reference.
[fa-stable.git] / includes / ajax.inc
index 13a9c1efae809a3b1a02ed69dcd53832d41ff05b..f71aaf47c987b2773af02ce0dd0e9ff506e39974 100644 (file)
@@ -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;
 }
-?>