Add editor button placeholder to stop page jump on load.
This commit is contained in:
parent
707fdcc637
commit
e25e0798c9
2 changed files with 7 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue