Improved db_pager query parsing (fixed error in Sales Quotation Inquiry)
[fa-stable.git] / includes / ajax.inc
index 13a9c1efae809a3b1a02ed69dcd53832d41ff05b..096d2391c0f9d91fdb782839222e36214d89accc 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;