diff options
| author | historia <[not public]> | 2026-07-04 23:04:00 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-04 23:04:00 -0400 |
| commit | 4385244d39b37d003dbb7a66a2ff3b05079b7047 (patch) | |
| tree | 6498a06879cc4ff06612abed259b1403f071ecb2 /internal/admin/static/mobeditor.js | |
| parent | ad22ea3526a146ea8ce305c8375c35836465cc30 (diff) | |
| download | thehouseoficarus-4385244d39b37d003dbb7a66a2ff3b05079b7047.tar.gz | |
feat: drag/drop files in gui to change directories
Diffstat (limited to 'internal/admin/static/mobeditor.js')
| -rw-r--r-- | internal/admin/static/mobeditor.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/static/mobeditor.js b/internal/admin/static/mobeditor.js index 802b48a..1758673 100644 --- a/internal/admin/static/mobeditor.js +++ b/internal/admin/static/mobeditor.js @@ -173,9 +173,9 @@ function renderMobEditor(id, data) { }); html += '</select>'; html += '<button class="btn btn-primary btn-sm" onclick="mobAddSection()">Add</button>'; + html += renderMoveBar(); html += '</div>'; - html += renderMoveBar(); html += '</div>'; html += '<div class="tab-content" id="tabYaml" style="display:none">'; @@ -186,6 +186,7 @@ function renderMobEditor(id, data) { html += '<button class="btn btn-primary" onclick="saveMob()">Save</button>'; html += '<button class="btn" onclick="duplicateMob()">Duplicate</button>'; html += '<button class="btn btn-danger" onclick="deleteMob()">Delete Mob</button>'; + html += '<button class="btn btn-sm" style="margin-left:auto" onclick="createNewDir()">New Directory</button>'; html += '</div>'; $('#editorMain').innerHTML = html; |
