Refactor SelectionTable to use per-table initializers for row selection controls and improve JavaScript handling in templates

This commit is contained in:
Ross
2026-03-25 22:05:19 +00:00
parent ffb730e9c8
commit 7b52cab180
4 changed files with 199 additions and 78 deletions
+10
View File
@@ -348,6 +348,16 @@
// Selection wiring has been moved into per-table initializers
// emitted by `SelectionTable.row_selection_controls`.
try {
if (window.__selection_inits) {
Object.keys(window.__selection_inits).forEach(function(k){
try { window.__selection_inits[k](); } catch (e) { console.error('selection init failed', k, e); }
try { delete window.__selection_inits[k]; } catch (e) {}
});
}
} catch (err) {
console.error('Error running selection initializers', err);
}
});
</script>
</body>