[open-ils-commits] r17756 - branches/rel_2_0/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:08:18 EDT 2010


Author: miker
Date: 2010-09-17 01:08:15 -0400 (Fri, 17 Sep 2010)
New Revision: 17756

Modified:
   branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
Backport r17754 from trunk: Only show "issues held" if there is something to show

Modified: branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml	2010-09-17 05:07:02 UTC (rev 17755)
+++ branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml	2010-09-17 05:08:15 UTC (rev 17756)
@@ -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