Update exhibit
This commit is contained in:
@@ -721,6 +721,12 @@ $('reloadBtn').addEventListener('click', async () => {
|
||||
toast('Reloaded from server');
|
||||
});
|
||||
|
||||
const printAnchorsBtn = document.getElementById('printAnchorsBtn');
|
||||
if (printAnchorsBtn) printAnchorsBtn.addEventListener('click', () => {
|
||||
if (dirty) toast('Tip: save first so the print sheet matches your latest anchors', '');
|
||||
window.open('anchors-print.html', '_blank');
|
||||
});
|
||||
|
||||
window.addEventListener('beforeunload', (e) => { if (dirty) { e.preventDefault(); e.returnValue = ''; } });
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user