mirror of https://github.com/dirtbags/tanks.git
debugger: don't submit tanks without a name
This commit is contained in:
parent
5f41251403
commit
515c612bc7
|
@ -37,6 +37,10 @@
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
window.onload = function() { design(); update(); };
|
window.onload = function() { design(); update(); };
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
|
if ($('[name="name"]').val() === "") {
|
||||||
|
$('#submit-feedback').html("No name?");
|
||||||
|
return;
|
||||||
|
}
|
||||||
$('#submit-feedback').html("Submitting...");
|
$('#submit-feedback').html("Submitting...");
|
||||||
|
|
||||||
// http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
|
// http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
|
||||||
|
|
Loading…
Reference in New Issue