auto enable/disable proceed button
This commit is contained in:
parent
791b6ad5b1
commit
97a05984ab
|
@ -72,12 +72,14 @@ async function run() {
|
||||||
|
|
||||||
function new_game() {
|
function new_game() {
|
||||||
textareaGameDataInput.value = load_default_game_data();
|
textareaGameDataInput.value = load_default_game_data();
|
||||||
|
checkGameData();
|
||||||
// we don't need to look at the default game data, so skip ahead to the image page
|
// we don't need to look at the default game data, so skip ahead to the image page
|
||||||
buttonGameDataProceed.click();
|
buttonGameDataProceed.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
function clear_game() {
|
function clear_game() {
|
||||||
textareaGameDataInput.value = "";
|
textareaGameDataInput.value = "";
|
||||||
|
checkGameData();
|
||||||
}
|
}
|
||||||
|
|
||||||
buttonNewGame.addEventListener("click", new_game);
|
buttonNewGame.addEventListener("click", new_game);
|
||||||
|
|
Loading…
Reference in New Issue