diff options
author | Rob Snelders <programming@ertai.nl> | 2012-11-23 20:19:28 +0100 |
---|---|---|
committer | Rob Snelders <programming@ertai.nl> | 2012-11-23 20:19:28 +0100 |
commit | c725259b7170c50c0aa5ed074472cabe2e1d89a3 (patch) | |
tree | 66288387282e6ff2573580aa5dd5b455127b7b17 | |
parent | 925c0e72041cf4819c76530cd97206f4be9c0f43 (diff) |
scroll to the top of the BSA after submit or error.
-rw-r--r-- | bug/bug/bug.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/bug/bug.js b/bug/bug/bug.js index 5bcad72..55312ed 100644 --- a/bug/bug/bug.js +++ b/bug/bug/bug.js @@ -52,7 +52,7 @@ } } $.bug.error_set(message); - window.scrollTo(0,0); + $.bug.window.scrollTo(0,225); throw error; }); }, @@ -288,7 +288,7 @@ var bug = $('.state_submit .bug').text(); $('.bug', element).attr('href', $.bug.url + '/show_bug.cgi?id=' + bug); element.show(); - window.scrollTo(0,0); + $.bug.window.scrollTo(0,225); }, // if this string is found in the page returned when |