Checking options parameter for combos
[fa-stable.git] / includes / ajax.inc
index c07bea6809e25896c0e194f12214d9fa55369b66..135ee03df2dc91cd46d75d79d63a0d22f91adee3 100644 (file)
@@ -114,7 +114,13 @@ class Ajax extends JsHttpRequest {
                  }
                  else
                  if($com['n'] == 'up' && $com['t'] == '_page_body') {
-                         $this->aCommands = array($com);
+                         $cmds = array($com);
+                         foreach( $this->aCommands as $k=> $cmd) {
+                               if ($cmd['n'] == 'fc') {        // save focus
+                                       $cmds[] = $cmd; break;
+                               }
+                         }
+                         $this->aCommands = $cmds;
                          break;
                  }
                }