The barcode not found message should stand out more, so make it a text alert.
In addition, empty barcode isn't really "not found" but still invalid. Hide the
"barcode not found" message and disable submit on empty barcode.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Ben Shum <bshum@biblio.org>
padding: 0;
vertical-align: middle;
}
+
+#patron_usr_barcode_not_found {
+ font-weight: bold; color: [% css_colors.text_alert %];
+}
}
if(barcode == undefined || barcode == '') {
document.getElementById('patron_name').innerHTML = '';
+ // No submitting on empty barcode, but empty barcode doesn't really count as "not found" either
+ document.getElementById('place_hold_submit').disabled = true;
+ document.getElementById("patron_usr_barcode_not_found").style.display = 'none';
cur_hold_barcode = null;
return;
}