MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / hideModal

Function hideModal

static/bootstrap-utils.ts:165–171  ·  view source on GitHub ↗
(elementOrSelector: string | HTMLElement | JQuery)

Source from the content-addressed store, hash-verified

163 * @param elementOrSelector Element or selector for the modal
164 */
165export function hideModal(elementOrSelector: string | HTMLElement | JQuery): void {
166 const element = getElement(elementOrSelector);
167 if (!element) return;
168
169 const modal = Modal.getInstance(element);
170 if (modal) modal.hide();
171}
172
173/**
174 * Show a toast

Callers

nothing calls this directly

Calls 2

getElementFunction · 0.85
hideMethod · 0.45

Tested by

no test coverage detected