]> iEval git - gruntmaster-page.git/commitdiff
Scroll to top after submit in form.js
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 18 Feb 2015 17:25:27 +0000 (19:25 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 18 Feb 2015 17:25:27 +0000 (19:25 +0200)
js/90-form.js

index a326ca888752f045a8b9760844901d539d1b7da0..9391087d90e0272fcae69481398e4e16784d7b8a 100644 (file)
@@ -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.022608 seconds and 4 git commands to generate.