Use native dom in dispatcher field error init.
This commit is contained in:
parent
3c536bcc9d
commit
0f57245f0c
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue