diff options
| author | historia <[not public]> | 2026-07-04 22:44:42 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-04 22:44:42 -0400 |
| commit | ad22ea3526a146ea8ce305c8375c35836465cc30 (patch) | |
| tree | 479cec511e596bb09d3f3792dcf10a2201e9b7f8 /internal/admin/static/itemeditor.js | |
| parent | 7b009e904524f30cbff6346730e8d8fe4b046a6b (diff) | |
| download | thehouseoficarus-ad22ea3526a146ea8ce305c8375c35836465cc30.tar.gz | |
feat: admin gui move objects between directories and better toolbar wrapping
Diffstat (limited to 'internal/admin/static/itemeditor.js')
| -rw-r--r-- | internal/admin/static/itemeditor.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/static/itemeditor.js b/internal/admin/static/itemeditor.js index 641f064..ce28581 100644 --- a/internal/admin/static/itemeditor.js +++ b/internal/admin/static/itemeditor.js @@ -200,6 +200,7 @@ function renderItemEditor(id, data) { html += '</select>'; html += '<button class="btn btn-primary btn-sm" onclick="addSection()">Add</button>'; html += '</div>'; + html += renderMoveBar(); html += '</div>'; html += '<div class="tab-content" id="tabYaml" style="display:none">'; @@ -237,8 +238,8 @@ function renderCard(sec, data) { var h = '<div class="obj-card' + fullClass + '" data-card="' + sec.id + '">'; h += '<div class="obj-card-header" onclick="toggleCard(\'' + sec.id + '\')">'; h += '<span class="obj-card-arrow">' + (collapsed ? '▶' : '▼') + '</span>'; - h += '<button class="btn btn-sm obj-card-expand" onclick="event.stopPropagation();toggleCardWidth(\'' + sec.id + '\')" title="' + (isFull ? 'Half width' : 'Full width') + '">' + (isFull ? '\u229F' : '\u229E') + '</button>'; h += '<span class="obj-card-label">' + sec.label + '</span>'; + h += '<button class="btn btn-sm obj-card-expand" onclick="event.stopPropagation();toggleCardWidth(\'' + sec.id + '\')" title="' + (isFull ? 'Half width' : 'Full width') + '">' + (isFull ? '\u2190' : '\u2192') + '</button>'; if (!sec.always) { h += '<button class="btn btn-sm btn-danger obj-card-remove" onclick="event.stopPropagation();removeSection(\'' + sec.id + '\')">X</button>'; } |
