CC-2791: "Port" should only allow numbers and 5 digits
- fixed - fixed scrolling when errors
This commit is contained in:
parent
0591c9d76f
commit
e918f3b29a
2 changed files with 4 additions and 2 deletions
|
@ -2,8 +2,8 @@ function showErrorSections() {
|
|||
|
||||
$(".errors").each(function(i){
|
||||
if($(this).length > 0){
|
||||
$(this).closest("div").show();
|
||||
$(window).scrollTop($(this).position().top);
|
||||
// -250 is due to static panel on the top
|
||||
$(window).scrollTop($(this).closest("div").position().top-250);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue