(report)
| 2991 | } |
| 2992 | |
| 2993 | function setReportLinks(report) { |
| 2994 | const map = { |
| 2995 | openReportAbsBtn: report.abs_url || report.url || "", |
| 2996 | openReportPdfBtn: report.pdf_url || "", |
| 2997 | openReportDocBtn: report.doc_url || "", |
| 2998 | copyReportPathBtn: report.report_path || "" |
| 2999 | }; |
| 3000 | Object.entries(map).forEach(([id, value]) => { |
| 3001 | const button = $(id); |
| 3002 | button.disabled = !value; |
| 3003 | button.dataset.href = value; |
| 3004 | }); |
| 3005 | } |
| 3006 | |
| 3007 | async function loadReportContent(reportId, silent = false) { |
| 3008 | if (!reportId) return; |
no test coverage detected