MCPcopy Create free account
hub / github.com/error311/FileRise / showCustomConfirmModal

Function showCustomConfirmModal

public/js/adminPanel.js:5451–5470  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

5449}
5450
5451function showCustomConfirmModal(message) {
5452 return new Promise(resolve => {
5453 const modal = document.getElementById("customConfirmModal");
5454 const msg = document.getElementById("confirmMessage");
5455 const yes = document.getElementById("confirmYesBtn");
5456 const no = document.getElementById("confirmNoBtn");
5457 if (!modal || !msg || !yes || !no) { resolve(true); return; }
5458 msg.textContent = message;
5459 modal.style.display = "block";
5460 function clean() {
5461 modal.style.display = "none";
5462 yes.removeEventListener("click", onYes);
5463 no.removeEventListener("click", onNo);
5464 }
5465 function onYes() { clean(); resolve(true); }
5466 function onNo() { clean(); resolve(false); }
5467 yes.addEventListener("click", onYes);
5468 no.addEventListener("click", onNo);
5469 });
5470}
5471
5472function showProUpdateChoiceModal({ hasAuto }) {
5473 return new Promise(resolve => {

Callers 6

initGatewaysSectionFunction · 0.70
initProBundleInstallerFunction · 0.70
openAdminUserHubModalFunction · 0.70
openAdminPanelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected