diff options
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 ce28581..84090a1 100644 --- a/internal/admin/static/itemeditor.js +++ b/internal/admin/static/itemeditor.js @@ -199,9 +199,9 @@ 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>'; html += '<div class="tab-content" id="tabYaml" style="display:none">'; html += '<pre>' + esc(data._raw || JSON.stringify(data, null, 2)) + '</pre>'; @@ -211,6 +211,7 @@ function renderItemEditor(id, data) { html += '<button class="btn btn-primary" onclick="saveItem()">Save</button>'; html += '<button class="btn" onclick="duplicateItem()">Duplicate</button>'; html += '<button class="btn btn-danger" onclick="deleteItem()">Delete Item</button>'; + html += '<button class="btn btn-sm" style="margin-left:auto" onclick="createNewDir()">New Directory</button>'; html += '</div>'; $('#editorMain').innerHTML = html; |
