Commit b77fc22f by AlasdairSwan

Merge pull request #5887 from edx/alasdair/logistration-error-scroll

Updated so is submission prevented by JS due to errors it scrolls to the...
parents 4c51f873 a1f8211e
......@@ -179,6 +179,11 @@ var edx = edx || {};
$msg.html( html.join('') );
this.element.show( this.$errors );
// Scroll to error messages
$('html,body').animate({
scrollTop: this.$errors.offset().top
},'slow');
},
submitForm: function( event ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment