Updated so is submission prevented by JS due to errors it scrolls to the error messages

This commit is contained in:
AlasdairSwan
2014-11-07 13:42:28 -05:00
parent 4c51f8731f
commit a1f8211e5f

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