fix phantom links and status display
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 12 Nov 2008 15:16:22 +0000 (15:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 12 Nov 2008 15:16:22 +0000 (15:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11152 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/rdetail.js
Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_copyinfo.xml

index 89ea569..f379b07 100644 (file)
@@ -609,6 +609,9 @@ var localCNFound = false;
 var ctr = 0;
 function _rdetailBuildInfoRows(r) {
 
+    if (rdetailShowCopyLocation)
+           unHideMe( $n( $('rdetail_copy_info_table'), 'rdetail_copylocation_header' ) );
+
        removeChildren(copyRowParent);
 
        _rdetailRows();
@@ -625,9 +628,6 @@ function _rdetailBuildInfoRows(r) {
                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,7 +658,12 @@ function _rdetailBuildInfoRows(r) {
                        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);
 
@@ -675,9 +680,6 @@ function _rdetailBuildInfoRows(r) {
                //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 @@ function rdetailBuildBrowseInfo(row, cn, local, orgNode, cl) {
 
        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()) {
index c2f5341..24f4af2 100644 (file)
                                <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);'