This commit is contained in:
relikd
2023-05-29 15:20:07 +02:00
commit 1380b156d8
126 changed files with 3612 additions and 0 deletions

8
app/base/static/js/onload.js Executable file
View File

@@ -0,0 +1,8 @@
document.querySelectorAll('.table[data-onclick]').forEach((tbl) => {
tbl.classList.add('clickable');
const callback = new Function(tbl.dataset.onclick);
tbl.onclick = (event) => {
const entry = event.target.closest('tbody>tr');
if (entry) { callback.call(tbl, row=entry); }
};
});