This allows the completed barcode to populate in the barcode
input when the hold group interface isn't rendered.
Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
return;
}
cur_hold_barcode = load_info.barcode;
- if ((!only_settings || (isload && isload !== true)) && (sub_el && !sub_el.checked)) {
+ if ((!only_settings || (isload && isload !== true)) && (!sub_el || !sub_el.checked)) {
// Safe at this point as we already set cur_hold_barcode
document.getElementById('hold_usr_input').value = load_info.barcode;