Add space between ok, cancel buttons on editor & confirmer.
This commit is contained in:
parent
251bc04459
commit
f28e362c58
2 changed files with 2 additions and 0 deletions
|
@ -182,6 +182,7 @@ function init_button_with_confirm()
|
|||
button_confirm.innerText = button.dataset.confirm || button.innerText;
|
||||
button_confirm.className = button.dataset.confirmClass || "";
|
||||
holder_stage2.appendChild(button_confirm);
|
||||
holder_stage2.appendChild(document.createTextNode(" "));
|
||||
delete button.dataset.confirm;
|
||||
delete button.dataset.confirmClass;
|
||||
|
||||
|
|
|
@ -207,6 +207,7 @@ function Editor(elements, on_open, on_save, on_cancel)
|
|||
this.save_button.classList.add("hidden");
|
||||
this.save_button.onclick = this.binder(on_save, this.save);
|
||||
toolbox.appendChild(this.save_button);
|
||||
toolbox.appendChild(document.createTextNode(" "));
|
||||
|
||||
this.cancel_button = document.createElement("button");
|
||||
this.cancel_button.innerText = "Cancel";
|
||||
|
|
Loading…
Reference in a new issue