From ad22ea3526a146ea8ce305c8375c35836465cc30 Mon Sep 17 00:00:00 2001
From: historia <[not public]>
Date: Sat, 4 Jul 2026 22:44:42 -0400
Subject: feat: admin gui move objects between directories and better toolbar
wrapping
---
internal/admin/static/editor.js | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
(limited to 'internal/admin/static/editor.js')
diff --git a/internal/admin/static/editor.js b/internal/admin/static/editor.js
index 37bc797..35bdbe6 100644
--- a/internal/admin/static/editor.js
+++ b/internal/admin/static/editor.js
@@ -233,3 +233,32 @@ function esc(s) { return String(s || '').replace(/&/g,'&').replace(/';
+ html += '';
+ html += '';
+ html += '';
+ return html;
+}
+
+function moveToDirectory() {
+ var sel = $('#moveDirSelect');
+ var idx = sel.selectedIndex;
+ if (idx === 0) return;
+ var dir = sel.value;
+ if (!confirm('Move ' + currentID + ' to ' + (dir || 'Root') + '?')) return;
+ API.post('/api/' + editorType + '/move', {id: currentID, dir: dir}).then(function() {
+ notify('Moved ' + currentID + ' to ' + (dir || 'Root'), 'success');
+ updateUndoBar();
+ loadList();
+ loadItem(currentID);
+ }).catch(function(e) { notify('Move failed: ' + e.message, 'error'); });
+}
--
cgit v1.2.3