Use native dom in dispatcher field error init.

This commit is contained in:
Bryce Johnson 2016-10-07 11:57:49 +02:00
parent 3c536bcc9d
commit 0f57245f0c

View file

@ -296,9 +296,10 @@
};
Dispatcher.prototype.initFieldErrors = function() {
$('form.show-gl-field-errors').each(function(i, form) {
new gl.GlFieldErrors(form);
});
return document.querySelectorAll('.show-gl-field-errors')
.forEach(function(form) {
new gl.GlFieldErrors(form);
});
};
return Dispatcher;