MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / setFieldError

Function setFieldError

Script/FastDork.js:464–473  ·  view source on GitHub ↗
(element, isInvalid)

Source from the content-addressed store, hash-verified

462 }
463
464 function setFieldError(element, isInvalid) {
465 const surface = getFieldErrorSurface(element);
466 if (!surface) return;
467 surface.classList.toggle("field-error", Boolean(isInvalid));
468 if (surface !== element) {
469 element.style.border = "";
470 element.style.borderBottom = "";
471 element.classList.remove("field-error");
472 }
473 }
474
475 function showDorkOptionsModal() {
476 if (UI.dorkOptionsModal) {

Callers 7

showDorkOptionsModalFunction · 0.85
hideErrorTab1Function · 0.85
saveDorkListContentFunction · 0.85
setupImportButtonFunction · 0.85
validateDorkOptionsModalFunction · 0.85

Calls 1

getFieldErrorSurfaceFunction · 0.85

Tested by

no test coverage detected