diff --git a/app/views/process_plates/new.html.haml b/app/views/process_plates/new.html.haml index 3a1fda4c..5b1a48a3 100644 --- a/app/views/process_plates/new.html.haml +++ b/app/views/process_plates/new.html.haml @@ -46,15 +46,18 @@ $.post('#{processes_instruments_path}',{ instrument_barcode: $('#instrument_barcode')[0].value}, function(data) { $("#instrument_process").html(data); - }); - - $.post('#{witness_instruments_path}',{ instrument_barcode: $('#instrument_barcode')[0].value, instrument_process_id: $('#instrument_process')[0].value }, function(data) { - if (data.match(/witness_required/)) { - $("#witness_barcode_input").removeClass('hidden'); - } + + $.post('#{witness_instruments_path}',{ instrument_barcode: $('#instrument_barcode')[0].value, instrument_process_id: $('#instrument_process')[0].value }, function(data) { + if (data.match(/witness_required/)) { + $("#witness_barcode_input").removeClass('hidden'); + } + + }); }); + + }); $("#instrument_process").change(function() {