We actually need to test for equality with '0'
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Jan 2008 03:23:21 +0000 (03:23 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Jan 2008 03:23:21 +0000 (03:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8533 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.js

index d67c114..3ff392f 100644 (file)
@@ -364,7 +364,7 @@ circ.checkout.prototype = {
 
                                        var checkout = req.getResultObject();
 
-                                       if (checkout.ilsevent === 0) {
+                                       if (checkout.ilsevent === '0') {
                
                                                if (!checkout.payload) { checkout.payload = {}; }
                
@@ -597,7 +597,7 @@ circ.checkout.prototype = {
 
                        /**********************************************************************************************************************/
                        /* Normal case, proceed with checkout */
-                       if (permit.ilsevent === 0) {
+                       if (permit.ilsevent === '0') {
 
                                JSAN.use('util.sound'); var sound = new util.sound(); sound.circ_good();
                                params.permit_key = permit.payload;