diff --git a/parts/static/script.js b/parts/static/script.js index 841c558..02bd755 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -62,6 +62,10 @@ function end_edit() { } function save(partID) { + if (!$('#location-dropdown').val()) { + alert('Please select a location.'); + return; + } var location_id_v = $('#location-dropdown').val(); var partno_v = $('input[name=partno-input]').val(); var description_v = $('input[name=description-input]').val();