Allow tabbing via space in log form

py3
Sebastian Lohff 7 years ago
parent c00cace7e8
commit 994cdfb234

@ -117,6 +117,19 @@ $(document).ready(function() {
$("#id_call").on("input", checkForDupes);
$("#id_band").change(checkForDupes);
// use space to get to the next field for certain fields
function mvFocusOnSpace(e, newFocusId) {
if(e.keyCode == 32) {
$(newFocusId).focus()
return false;
}
}
$("#id_call").on("keydown", function(e) { return mvFocusOnSpace(e, "#id_otherNo"); });
$("#id_otherNo").on("keydown", function(e) { return mvFocusOnSpace(e, "#id_refStr"); });
$("#id_refStr").on("keydown", function(e) { return mvFocusOnSpace(e, "#submit-id-submit"); });
});
</script>

Loading…
Cancel
Save