- $(document).ready(function() {
- $("#exemptcheck").change(function(){
- if(this.checked == true) {
- $("#barcode").addClass("alert");
- $("#exemptfines").show();
- } else {
- $("#barcode").removeClass("alert");
- $("#exemptfines").hide();
- }
- $("#barcode").focus();
- });
- $("#dropboxcheck").change(function(){
- if (this.checked == true) {
- $("#barcode").addClass("alert");
- $("#dropboxmode").show();
- } else {
- $("#barcode").removeClass("alert");
- $("#dropboxmode").hide();
- }
- $("#barcode").focus();
- });
- [% IF ( overduecharges ) %]$("#barcode").focus(function(){
- if(($("#exemptcheck").attr("checked") == true)||($("#dropboxcheck").attr("checked") == true)){
- $("#barcode").addClass("alert");
- } else {
- $("#barcode").removeClass("alert");
- }
- });
- $("#barcode").blur(function(){
- $("#barcode").removeClass("alert");
- });[% END %]
- });
+$(document).ready(function () {
+ $("#exemptcheck").change(function () {
+ if (this.checked == true) {
+ $("#barcode").addClass("alert");
+ $("#exemptfines").show();
+ } else {
+ $("#barcode").removeClass("alert");
+ $("#exemptfines").hide();
+ }
+ $("#barcode").focus();
+ });
+ $("#dropboxcheck").change(function () {
+ if (this.checked == true) {
+ $("#barcode").addClass("alert");
+ $("#dropboxmode").show();
+ } else {
+ $("#barcode").removeClass("alert");
+ $("#dropboxmode").hide();
+ }
+ $("#barcode").focus();
+ });
+ [% IF(overduecharges) %] $("#barcode").focus(function () {
+ if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
+ $("#barcode").addClass("alert");
+ } else {
+ $("#barcode").removeClass("alert");
+ }
+ });
+ $("#barcode").blur(function () {
+ $("#barcode").removeClass("alert");
+ });
+ [% END %]
+});