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

Function saveReportAnnotation

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

Source from the content-addressed store, hash-verified

2833 }
2834
2835 function saveReportAnnotation() {
2836 const reportId = state.currentReport?.report_id;
2837 const body = $("reportViewerBody");
2838 if (!reportId || !body || body.classList.contains("empty")) return;
2839 try {
2840 window.localStorage.setItem(reportAnnotationKey(reportId), body.innerHTML);
2841 $("clearReportAnnotationsBtn").disabled = false;
2842 } catch (error) {
2843 console.warn("Unable to save report annotation", error);
2844 }
2845 }
2846
2847 function hideReportAnnotationToolbar() {
2848 const toolbar = document.querySelector(".annotation-toolbar");

Callers 1

applyReportAnnotationFunction · 0.85

Calls 2

reportAnnotationKeyFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected