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

Updated so is submission prevented by JS due to errors it scrolls to the...
This commit is contained in:
AlasdairSwan
2014-11-07 13:46:14 -05:00

View File

@@ -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 ) {