summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Snelders <programming@ertai.nl>2012-11-23 20:19:28 +0100
committerRob Snelders <programming@ertai.nl>2012-11-23 20:19:28 +0100
commitc725259b7170c50c0aa5ed074472cabe2e1d89a3 (patch)
tree66288387282e6ff2573580aa5dd5b455127b7b17
parent925c0e72041cf4819c76530cd97206f4be9c0f43 (diff)
scroll to the top of the BSA after submit or error.
-rw-r--r--bug/bug/bug.js4
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