MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / setButtonLoading

Function setButtonLoading

static/js/payment.js:1188–1201  ·  view source on GitHub ↗
(buttonId, loadingText, isLoading)

Source from the content-addressed store, hash-verified

1186}
1187
1188function setButtonLoading(buttonId, loadingText, isLoading) {
1189 const btn = document.getElementById(buttonId);
1190 if (!btn) return;
1191 if (isLoading) {
1192 if (!btn.dataset.originalText) {
1193 btn.dataset.originalText = btn.textContent || "";
1194 }
1195 btn.disabled = true;
1196 btn.textContent = loadingText;
1197 return;
1198 }
1199 btn.disabled = false;
1200 btn.textContent = btn.dataset.originalText || btn.textContent;
1201}
1202
1203function resetGenerateLinkButtonState() {
1204 const btn = document.getElementById("generate-link-btn");

Callers 7

runSessionDiagnosticFunction · 0.85
runSessionBootstrapFunction · 0.85
saveManualSessionTokenFunction · 0.85
randomBillingByCountryFunction · 0.85
generateLinkFunction · 0.85
createBindCardTaskFunction · 0.85
runnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected