From 8952653be9bfeeb9aadf59f845de507630d65dc4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 13 Jul 2026 17:25:14 -0400 Subject: feat(admin): add drop tables to gui showing 1/n drop chances --- internal/admin/static/dropeditor.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'internal/admin/static/dropeditor.js') diff --git a/internal/admin/static/dropeditor.js b/internal/admin/static/dropeditor.js index 5900930..e8ade87 100644 --- a/internal/admin/static/dropeditor.js +++ b/internal/admin/static/dropeditor.js @@ -78,6 +78,7 @@ function renderDropEditor(id, data) { $('#editorMain').innerHTML = html; setupSearchFields(); + setupDropEditorDropView(); } function renderCurrent() { @@ -140,6 +141,7 @@ function renderArraySection(sec, data) { h += ''; h += ''; h += ''; + h += '
'; return h; } @@ -291,3 +293,12 @@ function duplicateDrop() { loadDropEditor(newID); }).catch(function(e) { notify('Duplicate failed: ' + e.message, 'error'); }); } + +function setupDropEditorDropView() { + var card = document.querySelector('.obj-card[data-card="drops"]'); + if (!card) return; + DropView.mount(card.querySelector('.obj-card-body'), function() { + ced_syncDOMToData(dropData); + return (dropData.drops || []).filter(function(e) { return e.item_id || e.table; }); + }); +} -- cgit v1.2.3