[open-ils-commits] r17754 - trunk/Open-ILS/web/opac/skin/default/xml/rdetail (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 17 01:04:29 EDT 2010
Author: miker
Date: 2010-09-17 01:04:25 -0400 (Fri, 17 Sep 2010)
New Revision: 17754
Modified:
trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
Only show "issues held" if there is something to show
Modified: trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2010-09-17 01:30:02 UTC (rev 17753)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2010-09-17 05:04:25 UTC (rev 17754)
@@ -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 "";
More information about the open-ils-commits
mailing list