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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user