-
-
Save berick/553ebda254a15e363ca019a5fb8dcd21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+++ 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