Refactor SelectionTable to use per-table initializers for row selection controls and improve JavaScript handling in templates
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user