[open-ils-commits] r10336 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 11 13:32:36 EDT 2008
Author: erickson
Date: 2008-08-11 13:32:34 -0400 (Mon, 11 Aug 2008)
New Revision: 10336
Modified:
trunk/Open-ILS/web/opac/skin/default/js/holds.js
Log:
disable org select if requestor does not have the change-pickup-lib while on holds shelf perm
Modified: trunk/Open-ILS/web/opac/skin/default/js/holds.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/holds.js 2008-08-11 17:06:35 UTC (rev 10335)
+++ trunk/Open-ILS/web/opac/skin/default/js/holds.js 2008-08-11 17:32:34 UTC (rev 10336)
@@ -108,10 +108,16 @@
setSelector(orgsel, hold.pickup_lib());
if( hold.capture_time() || status > 2 ) {
- //orgsel.disabled = true;
frozenbox.disabled = true;
$('holds_frozen_thaw_input').disabled = true;
-
+ if(status == 3) {
+ // no pickup lib changes while in-transit
+ orgsel.disabled = true;
+ } else {
+ var orgs = fetchPermOrgs('UPDATE_PICKUP_LIB_FROM_HOLDS_SHELF');
+ if(orgs[0] == -1)
+ orgsel.disabled = true;
+ }
} else {
orgsel.disabled = false;
frozenbox.disabled = false;
More information about the open-ils-commits
mailing list