From: miker Date: Fri, 17 Sep 2010 05:04:25 +0000 (+0000) Subject: Only show "issues held" if there is something to show X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7af71baf3470a133121b86e69416a805cbfc9a05;p=evergreen%2Fbjwebb.git Only show "issues held" if there is something to show git-svn-id: svn://svn.open-ils.org/ILS/trunk@17754 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml index 42377f741..f3fe5a800 100644 --- a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml +++ b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml @@ -151,8 +151,11 @@ var innerret = dojo.create( "div", {"style":"clear;both;"}, ret ); + + var something = false; for (var i in blob) { if (!blob[i].length) continue; + something = true; dojo.create( "div", { "innerHTML": blob[i].join(", "), @@ -174,7 +177,7 @@ dojo.create("div", {"style":"float:right;width:33%;", "expanded_holdings": i}, innerret); } - dojo.removeClass(slot,'hide_me'); + if (something) dojo.removeClass(slot,'hide_me'); return ret.innerHTML; } else { return "";