projects
/
plack-app-gruntmaster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
410e4ed
)
Scroll to top after submit in form.js
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 18 Feb 2015 17:25:27 +0000
(19:25 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Wed, 18 Feb 2015 17:25:27 +0000
(19:25 +0200)
js/90-form.js
patch
|
blob
|
blame
|
history
diff --git
a/js/90-form.js
b/js/90-form.js
index a326ca888752f045a8b9760844901d539d1b7da0..9391087d90e0272fcae69481398e4e16784d7b8a 100644
(file)
--- a/
js/90-form.js
+++ b/
js/90-form.js
@@
-13,6
+13,7
@@
xhr.onerror = function() {
$('#result').html('Error!');
};
+ window.scrollTo(0, 0);
$('#result').html('Loading...');
xhr.send(form_data);
return false;
This page took
0.01026 seconds
and
4
git commands to generate.