Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions app/frontend/entrypoints/pages/bed_verification.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,17 @@ const fail = function () {
}

$('#plate_scan').on('change', function () {
let plate_barcode, bed_barcode, robot_barcode
plate_barcode = this.value
bed_barcode = $('#bed_scan').val()
robot_barcode = $('#robot_scan').val()
let bed_barcode = $('#bed_scan').val()
if (!bed_barcode) {
SCAPE.message('Scan the bed before the plate please!', 'warning')
$('#bed_scan').focus()
this.value = ''
return
}
// clear the message field if we have a bed barcode
SCAPE.message('', '')
let plate_barcode = this.value
let robot_barcode = $('#robot_scan').val()
SCAPE.robot_scan = robot_barcode
this.value = ''
$('#bed_scan').val('')
Expand Down
Loading