Commit 0f57245f authored by Bryce Johnson's avatar Bryce Johnson

Use native dom in dispatcher field error init.

parent 3c536bcc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment