if the screen is small enough to have a scrollbar always go to the top
This commit is contained in:
parent
8498029cd9
commit
c0548d6a81
|
@ -117,6 +117,7 @@ function submitForm(e, obj) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var d = $(e.target).serializeArray();
|
var d = $(e.target).serializeArray();
|
||||||
addOverlay();
|
addOverlay();
|
||||||
|
$(".viewport").scrollTop(0);
|
||||||
// Append .promise().done() rather than using a
|
// Append .promise().done() rather than using a
|
||||||
// callback to avoid call duplication
|
// callback to avoid call duplication
|
||||||
$("#overlay, #loadingImage").fadeIn(500).promise().done(function() {
|
$("#overlay, #loadingImage").fadeIn(500).promise().done(function() {
|
||||||
|
|
Loading…
Reference in New Issue