Only show "issues held" if there is something to show
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 17 Sep 2010 05:04:25 +0000 (05:04 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 17 Sep 2010 05:04:25 +0000 (05:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17754 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml

index 42377f7..f3fe5a8 100644 (file)
                                                        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(", "),
                                                                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 "";