[open-ils-commits] r11152 - in trunk/Open-ILS/web/opac/skin/default: js xml/rdetail
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 12 10:16:23 EST 2008
Author: erickson
Date: 2008-11-12 10:16:22 -0500 (Wed, 12 Nov 2008)
New Revision: 11152
Modified:
trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_copyinfo.xml
Log:
fix phantom links and status display
Modified: trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2008-11-12 15:03:38 UTC (rev 11151)
+++ trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2008-11-12 15:16:22 UTC (rev 11152)
@@ -609,6 +609,9 @@
var ctr = 0;
function _rdetailBuildInfoRows(r) {
+ if (rdetailShowCopyLocation)
+ unHideMe( $n( $('rdetail_copy_info_table'), 'rdetail_copylocation_header' ) );
+
removeChildren(copyRowParent);
_rdetailRows();
@@ -625,9 +628,6 @@
var rowNode = $("cp_info_" + thisOrg.id());
if(!rowNode) continue;
- if (rdetailShowCopyLocation)
- unHideMe( $n( rowNode, 'rdetail_copylocation_header' ) );
-
if(rowNode.getAttribute("used")) {
if( rowNode.nextSibling ) {
@@ -658,8 +658,13 @@
findNodeByName(rowNode, config.names.rdetail.cp_count_cell));
var statuses = arr[2];
- if (rdetailShowCopyLocation) statuses = arr[3];
+ var cl = '';
+ if (rdetailShowCopyLocation) {
+ cl = arr[2];
+ statuses = arr[3];
+ }
+
rdetailApplyStatuses(rowNode, cpc_temp, statuses);
var isLocal = false;
@@ -675,9 +680,6 @@
//if(isLocal) unHideMe(rowNode);
unHideMe(rowNode);
- var cl = '';
- if (rdetailShowCopyLocation) cl = arr[2];
-
rdetailSetPath( thisOrg, isLocal );
rdetailBuildBrowseInfo( rowNode, arr[1], isLocal, thisOrg, cl );
@@ -714,7 +716,9 @@
var bHref = 'javascript:rdetailShowCNBrowse("' + cn + '", '+orgNode.id()+', "'+depth+'");';
+ unHideMe( $n(row, 'details') )
$n(row, 'details').setAttribute('href', dHref);
+ unHideMe( $n(row, 'browse') )
$n(row, 'browse').setAttribute('href', bHref);
if(isXUL()) {
Modified: trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_copyinfo.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_copyinfo.xml 2008-11-12 15:03:38 UTC (rev 11151)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_copyinfo.xml 2008-11-12 15:16:22 UTC (rev 11152)
@@ -43,11 +43,11 @@
<td name='rdetail_actions_cell'>
<div style='padding-bottom: 1px;'>
<a style='font-size: 8pt;'
- name='details' class='classic_link'>&rdetail.copyInfo.details;</a>
+ name='details' class='hide_me classic_link'>&rdetail.copyInfo.details;</a>
</div>
<div style='margin-top: 2px;'>
<a name='browse' style='font-size: 8pt;'
- class='classic_link'>&rdetail.copyInfo.browse;</a>
+ class='hide_me classic_link'>&rdetail.copyInfo.browse;</a>
</div>
<div style='margin-top: 2px;' name='hold_div' class='hide_me'>
<a name='hold' style='font-size: 8pt;' href='javascript:void(0);'
More information about the open-ils-commits
mailing list