fix "back to image" button
This commit is contained in:
parent
6c32827ae5
commit
d3c72f7738
|
@ -59,7 +59,7 @@ html(lang="en-gb")
|
|||
to generate these alternate versions here.
|
||||
p.
|
||||
don't worry - #[i tilesy] will not create duplicate tiles.
|
||||
button.pagination.prev previous
|
||||
button.pagination.prev#back-to-image previous
|
||||
button.pagination.next#import next
|
||||
.page.download
|
||||
h2 download
|
||||
|
|
|
@ -47,6 +47,7 @@ async function run() {
|
|||
await init();
|
||||
|
||||
const buttonAddImage = el("add");
|
||||
const buttonBackToImage = el("back-to-image");
|
||||
const buttonDownload = el("download");
|
||||
const buttonGameDataProceed = el("game-data-next");
|
||||
const buttonImportGame = el("import");
|
||||
|
@ -150,6 +151,7 @@ async function run() {
|
|||
function addImage() {
|
||||
textareaGameDataInput.value = textareaGameDataOutput.value;
|
||||
textareaGameDataOutput.value = "";
|
||||
buttonBackToImage.click();
|
||||
}
|
||||
|
||||
buttonAddImage.addEventListener("click", addImage);
|
||||
|
|
Loading…
Reference in New Issue