[open-ils-commits] r11149 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 12 09:56:47 EST 2008
Author: miker
Date: 2008-11-12 09:56:45 -0500 (Wed, 12 Nov 2008)
New Revision: 11149
Modified:
trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
Log:
display issues with copy location
Modified: trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2008-11-12 02:02:10 UTC (rev 11148)
+++ trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2008-11-12 14:56:45 UTC (rev 11149)
@@ -625,6 +625,9 @@
var rowNode = $("cp_info_" + thisOrg.id());
if(!rowNode) continue;
+ if (rdetailShowCopyLocation)
+ unHideMe( rowNode, 'rdetail_copylocation_header') );
+
if(rowNode.getAttribute("used")) {
if( rowNode.nextSibling ) {
@@ -654,8 +657,11 @@
var cpc_temp = rowNode.removeChild(
findNodeByName(rowNode, config.names.rdetail.cp_count_cell));
- rdetailApplyStatuses(rowNode, cpc_temp, arr[2]);
+ var statuses = arr[2];
+ if (rdetailShowCopyLocation) statuses = arr[3];
+ rdetailApplyStatuses(rowNode, cpc_temp, statuses);
+
var isLocal = false;
if( orgIsMine( findOrgUnit(getLocation()), thisOrg ) ) {
found = true;
@@ -669,11 +675,11 @@
//if(isLocal) unHideMe(rowNode);
unHideMe(rowNode);
- if (rdetailShowCopyLocation)
- unHideMe( $n( $('rdetail_copy_info_table'), 'rdetail_copylocation_header') );
+ var cl = '';
+ if (rdetailShowCopyLocation) cl = arr[2];
rdetailSetPath( thisOrg, isLocal );
- rdetailBuildBrowseInfo( rowNode, arr[1], isLocal, thisOrg, arr[2] );
+ rdetailBuildBrowseInfo( rowNode, arr[1], isLocal, thisOrg, cl );
if( i == summary.length - 1 && !defaultCN) defaultCN = arr[1];
}
More information about the open-ils-commits
mailing list