Fixup invalid refs.

This commit is contained in:
Bryce Johnson 2016-10-07 21:50:35 +02:00
parent bad1feb23c
commit f141cdb3dd
2 changed files with 2 additions and 2 deletions

View file

@ -297,7 +297,7 @@
Dispatcher.prototype.initFieldErrors = function() {
var flaggedForms = document.querySelectorAll('.show-gl-field-errors');
return [...taggedForms].forEach(function(form) {
return [...flaggedForms].forEach(function(form) {
new gl.GlFieldErrors(form);
});
};

View file

@ -78,7 +78,7 @@
this.form.focusOnFirstInvalid.apply(this.form);
// For UX, wait til after first invalid submission to check each keyup
this.inputElement.off('keyup.field_validator')
.on('keyup.field_validator', this.updateValidityState.bind(this));
.on('keyup.field_validator', this.updateValidity.bind(this));
}