}
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();
}