ilsevent is no longer a number, but a string. I knew that, but missed this test
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Oct 2010 16:12:31 +0000 (16:12 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Oct 2010 16:12:31 +0000 (16:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18441 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 88412fd..5b8f7b2 100644 (file)
@@ -952,7 +952,7 @@ circ.checkout.prototype = {
                                     if (typeof robj.ilsevent == 'undefined') {
                                         obj.checkout(params);
                                     } else {
-                                        switch(robj.ilsevent) {
+                                        switch(Number(robj.ilsevent)) {
                                             case 1225 /* TRANSIT_ABORT_NOT_ALLOWED */ :
                                                 alert(robj.desc);
                                             break;