debugger: don't submit tanks without a name

This commit is contained in:
Alyssa Milburn 2014-07-30 14:01:27 +02:00
parent 5f41251403
commit 515c612bc7
1 changed files with 4 additions and 0 deletions

View File

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