auto enable/disable proceed button

This commit is contained in:
Max Bradbury 2020-07-20 17:45:22 +01:00
parent 791b6ad5b1
commit 97a05984ab
1 changed files with 2 additions and 0 deletions

View File

@ -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);