Add editor button placeholder to stop page jump on load.

This commit is contained in:
voussoir 2018-11-17 16:50:41 -08:00
parent 707fdcc637
commit e25e0798c9
2 changed files with 7 additions and 0 deletions

View file

@ -186,6 +186,12 @@ function Editor(elements, on_open, on_save, on_cancel)
return bindable.bind(this);
}
var placeholders = document.getElementsByClassName("editor_toolbox_placeholder");
for (var index = 0; index < placeholders.length; index += 1)
{
placeholders[index].parentElement.removeChild(placeholders[index]);
}
var last_element = this.edit_elements[this.edit_elements.length - 1];
var toolbox = document.createElement("div");
toolbox.classList.add("editor_toolbox");

View file

@ -155,6 +155,7 @@ ALBUM_ID = undefined;
{{-album.description-}}
</pre>
</div>
<button class="green_button editor_toolbox_placeholder">Edit</button>
</div>
<div id="hierarchy_parents">