projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4358c55
)
Fixed focus after ajax page reload
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 4 Jul 2008 21:32:33 +0000
(21:32 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 4 Jul 2008 21:32:33 +0000
(21:32 +0000)
includes/ajax.inc
patch
|
blob
|
history
diff --git
a/includes/ajax.inc
b/includes/ajax.inc
index c07bea6809e25896c0e194f12214d9fa55369b66..135ee03df2dc91cd46d75d79d63a0d22f91adee3 100644
(file)
--- a/
includes/ajax.inc
+++ b/
includes/ajax.inc
@@
-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;
}
}