Skip to content

Instantly share code, notes, and snippets.

@berick
Created July 26, 2021 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berick/553ebda254a15e363ca019a5fb8dcd21 to your computer and use it in GitHub Desktop.
Save berick/553ebda254a15e363ca019a5fb8dcd21 to your computer and use it in GitHub Desktop.
+++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
@@ -471,7 +471,7 @@ SelfCheckManager.prototype.fetchPatron = function(barcode, usrname) {
dojo.string.substitute(localeStrings.WELCOME_BANNER, [this.patron.first_given_name()]);
if (this.patron.email() && // they have an email address set and ...
- this.patron.email().match(/.*@.*/).length > 0 // it sorta looks like an email address
+ this.patron.email().match(/.*@.*/) != null // it sorta looks like an email address
) {
openils.Util.removeCSSClass( dojo.byId('oils-selfck-receipt-email').parentNode, 'hidden' );
if (user_setting_value(this.patron, 'circ.send_email_checkout_receipts') == 'true') // their selected default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment