MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / bindButtonFeedback

Function bindButtonFeedback

deployments/desktop/static/desktop.js:1688–1698  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1686 }
1687
1688 function bindButtonFeedback() {
1689 document.addEventListener("click", (event) => {
1690 const button = event.target.closest("button");
1691 if (!button || button.disabled) return;
1692 state.lastActionButton = button;
1693 flashButtonFeedback(button, "click");
1694 window.setTimeout(() => {
1695 if (state.lastActionButton === button) state.lastActionButton = null;
1696 }, 0);
1697 }, true);
1698 }
1699
1700 function responseLanguage() {
1701 return state.locale === "en" ? "en" : "zh";

Callers 1

bindEventsFunction · 0.85

Calls 1

flashButtonFeedbackFunction · 0.85

Tested by

no test coverage detected