fixed logic error created by log line (no brackets), removed alert line
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Aug 2006 13:36:01 +0000 (13:36 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Aug 2006 13:36:01 +0000 (13:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5730 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/javascript/backend/circ/circ_permit_hold.js
Open-ILS/web/opac/skin/default/js/holds.js

index cc3238a..f7ac0f7 100644 (file)
@@ -25,11 +25,13 @@ if( ( getMARCItemType() == 'g' ||
                mod == 'dvd' || 
                mod == 'video' ) &&
 
-               !isOrgDescendent(copy.circ_lib.shortname, patron.home_ou.id) )
+               !isOrgDescendent(copy.circ_lib.shortname, patron.home_ou.id) ) {
 
        log_info("This patron may not place a hold on the selected item");
 
        result.events.push('ITEM_NOT_HOLDABLE');
+}
+
 
 } go();
 
index c3df1fb..e0f5ce0 100644 (file)
@@ -686,7 +686,6 @@ function holdHandleCreateResponse(r) {
                return;
        }
        
-       alert(js2JSON(res));
        holdCreateHold(r._recurse, r._hold);
 }