Embarrassingly enough, when I first implemented the handling of this
form, I only tested that it gave a proper error message for an invalid
ID. Somehow I totally neglected to even test (let alone implement!)
the handling of a valid ID.
Fortunately, the missing implementation is _very_ easy. Just send the
browser to the URL for the game ID that was entered.
add_message("danger", game_id + " is not a valid game ID. Try again.");
return;
}
add_message("danger", game_id + " is not a valid game ID. Try again.");
return;
}
+
+ /* Now that its validated, send the browser to the URL for the game_id. */
+ window.location.href = "/" + game_id;
}
function lmno_join(form) {
}
function lmno_join(form) {