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:
7a4809a
)
Fixed page position after message display.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 24 Oct 2008 10:52:26 +0000
(10:52 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 24 Oct 2008 10:52:26 +0000
(10:52 +0000)
js/utils.js
patch
|
blob
|
history
diff --git
a/js/utils.js
b/js/utils.js
index 31a7e7d4988cf6d4ea32d57c480a7793387fb391..33fad502b8f2a8973b65e7fbcc63cdb7911d4e98 100644
(file)
--- a/
js/utils.js
+++ b/
js/utils.js
@@
-86,13
+86,15
@@
if(mark) mark.style.visibility = 'hidden';
Behaviour.apply();
+
if (errors.length>0)
window.scrollTo(0,0);
//document.getElementById('msgbox').scrollIntoView(true);
// Restore focus if we've just lost focus because of DOM element refresh
- if(!newwin) {
- setFocus();
- }
+ else
+ if(!newwin) {
+ setFocus();
+ }
}
},
false // do not disable caching