CC-2791: "Port" should only allow numbers and 5 digits

- fixed
- fixed scrolling when errors
This commit is contained in:
James 2011-09-12 13:57:26 -04:00
parent 0591c9d76f
commit e918f3b29a
2 changed files with 4 additions and 2 deletions

View file

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