projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New inventory sales report. Shows total sales - costs - contribution per category...
[fa-stable.git]
/
includes
/
ajax.inc
diff --git
a/includes/ajax.inc
b/includes/ajax.inc
index 5625fc900c3ba1c3bbda674de07d90f70cf26e30..3ad2966e821ea4236ff6d2ae60b6119c4dd42217 100644
(file)
--- a/
includes/ajax.inc
+++ b/
includes/ajax.inc
@@
-106,17
+106,19
@@
class Ajax extends JsHttpRequest {
// remove not active commands
foreach ($this->aCommands as $idx => $com) {
// remove not active commands
foreach ($this->aCommands as $idx => $com) {
- // display_error( $idx.':'.var_dump($com));
// If we should reload whole page content ignore all commands but the update.
// This is page repost equivalent, although header and footer are not reloaded.
// If we should reload whole page content ignore all commands but the update.
// This is page repost equivalent, although header and footer are not reloaded.
+ if ($com['why'] !== true && !isset($this->triggers[$com['why']])) {
+ unset($this->aCommands[$idx]);
+// display_error('unset '.$com['t']);
+ }
+ else
if($com['n'] == 'up' && $com['t'] == '_page_body') {
$this->aCommands = array($com);
break;
}
if($com['n'] == 'up' && $com['t'] == '_page_body') {
$this->aCommands = array($com);
break;
}
- else
- if ($com['why'] !== true && !isset($this->triggers[$com['why']]))
- unset($this->aCommands[$idx]);
}
}
+// display_error(htmlentities(print_r($this->aCommands, true)));
$GLOBALS['_RESULT'] = $this->aCommands;
// exit();
}
$GLOBALS['_RESULT'] = $this->aCommands;
// exit();
}