<span for='oils-selfck-nav-receipt'>[% l('Receipt:') %] </span>
<span><input type="radio" name="receipt_type" id='oils-selfck-receipt-print' value="email" checked/>[% l('Print') %]</span>
<span><input type="radio" name="receipt_type" id='oils-selfck-receipt-none' value="email"/>[% l('None') %]</span>
- <span><input type="radio" name="receipt_type" id='oils-selfck-receipt-email' value="email" class='hidden'/>[% l('Email') %]</span>
+ <span class="hidden"><input type="radio" name="receipt_type" id='oils-selfck-receipt-email' value="email"/>[% l('Email') %]</span>
</div>
<fieldset>
<legend>[% l('Items Checked Out') %]</legend>
if (this.patron.email() && // they have an email address set and ...
this.patron.email().match(/.*@.*/).length > 0 // it sorta looks like an email address
) {
- openils.Util.removeCSSClass( dojo.byId('oils-selfck-receipt-email'), 'hidden' );
+ 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
dojo.byId('oils-selfck-receipt-email').checked = true;
}
var params = [
this.authtoken,
this.patron.id(),
- null,
- 'format.selfcheck.checkout',
circIds
];
location.href = location.href;
}
);
+ } else {
+ // user elected to get no receipt
+ location.href = location.href;
}
} else {
location.href = location.href;