Skip to content
Snippets Groups Projects
Commit 78a1841f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

remove bogus own implementation of jQuery :invalid selector, fixes #952

Closes #952
parent b6ac398a
No related branches found
No related tags found
No related merge requests found
......@@ -154,24 +154,6 @@ $.fn.extend({
}
});
$.extend($.expr[':'], {
invalid: function(elem, index, match) {
var invalids = document.querySelectorAll(':invalid'),
result = false,
len = invalids.length || 0,
i;
for (i = 0; i < len; i += 1) {
if (elem === invalids[i]) {
result = true;
break;
}
}
return result;
}
});
$(document).ready(async () => {
await setLocale();
STUDIP.ready.trigger('dom');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment