From 21c1997a3fd0f5ec5dcff1add45e4dfaf7a338ca Mon Sep 17 00:00:00 2001
From: historia <[not public]>
Date: Sun, 5 Jul 2026 03:45:48 -0400
Subject: fix: use interaction cards in admin gui work, fix card css on object
tab
---
internal/admin/static/mobeditor.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'internal/admin/static/mobeditor.js')
diff --git a/internal/admin/static/mobeditor.js b/internal/admin/static/mobeditor.js
index 1758673..c564088 100644
--- a/internal/admin/static/mobeditor.js
+++ b/internal/admin/static/mobeditor.js
@@ -138,6 +138,7 @@ function loadMob(id) {
renderList('');
API.get('/api/mobs/' + encodeURIComponent(id)).then(function(data) {
mobData = data;
+ window._editorData = mobData;
if (mobData.shop && mobData.shop.buys_anything === undefined) {
mobData.shop.buys_anything = true;
}
@@ -427,7 +428,8 @@ function renderMobSubField(sec, stKey, idx, f, val) {
if (f[2] === 'search') {
var entity = f[6] || 'items';
var ph = f[3] ? ' placeholder="' + escAttr(f[3]) + '"' : ' placeholder="Search ' + entity + '..."';
- return '';
+ var dp = mobCardPath(sec) + '.' + stKey + '[' + idx + '].' + f[0];
+ return '';
}
if (f[2] === 'checkbox') {
return '';
--
cgit v1.2.3