Check if user has selected a location

master
Davide Bongiovanni 6 years ago
parent d65de687d8
commit 50e4903a30

@ -62,6 +62,10 @@ function end_edit() {
} }
function save(partID) { function save(partID) {
if (!$('#location-dropdown').val()) {
alert('Please select a location.');
return;
}
var location_id_v = $('#location-dropdown').val(); var location_id_v = $('#location-dropdown').val();
var partno_v = $('input[name=partno-input]').val(); var partno_v = $('input[name=partno-input]').val();
var description_v = $('input[name=description-input]').val(); var description_v = $('input[name=description-input]').val();

Loading…
Cancel
Save