X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fajax.inc;h=135ee03df2dc91cd46d75d79d63a0d22f91adee3;hb=0ad69edb5561aac03a5af49286c37b3350307719;hp=3ad2966e821ea4236ff6d2ae60b6119c4dd42217;hpb=c935a4090e3f152dd5549217d69b5b5036197024;p=fa-stable.git diff --git a/includes/ajax.inc b/includes/ajax.inc index 3ad2966e..135ee03d 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -114,11 +114,18 @@ 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; } } -// display_error(htmlentities(print_r($this->aCommands, true))); +// display_error('Activate:'.htmlentities(print_r($this->triggers, true))); +// display_error('Commands :'.htmlentities(print_r($this->aCommands, true))); $GLOBALS['_RESULT'] = $this->aCommands; // exit(); }