Clearly I should have left the bits of jQuery in this file alone,
authorsenator <lebbeous@esilibrary.com>
Fri, 4 Mar 2011 16:05:03 +0000 (11:05 -0500)
committersenator <lebbeous@esilibrary.com>
Fri, 4 Mar 2011 16:05:03 +0000 (11:05 -0500)
since I introduced a syntax error so subtle that spidermonkey nor firebug
could do anything but completely fail to execute even the first line of
this file, without any clue as to the syntax error.

Open-ILS/web/opac/skin/kcls/js/rdetail.js
Open-ILS/web/opac/skin/kcls/xml/common/js_common_postbody.xml

index 3ccf037..9f11b77 100644 (file)
@@ -902,7 +902,7 @@ function rdetailShowExtra(type, args) {
        var obj = dojo.query('[rel2='+type+']')[0];
        var node = $(obj.getAttribute('rel'));
        var arrow = $(obj.getAttribute('rel')+"_arrow");
-       if (dojo.style(node, "display") == "block")) {
+       if (dojo.style(node, "display") == "block") {
                hideMe(node);
                arrow.src="/opac/skin/kcls/graphics/rdetail_arrow.png";
        } else {
index 6b430ec..dc02c74 100644 (file)
         config.names.rdetail.cp_status      = 'rdetail_status_cell';
 
         attachEvt("common", "init", function() {
-            console.log("a 1");
             var here = findOrgUnit(getLocation());
             if (getDepth() > 0 || getDepth === 0 ) {
                 while (getDepth() < findOrgDepth(here))
             new openils.BibTemplate(
                 { record : new CGI().param('r'), org_unit : here.shortname() }
             ).render();
-            console.log("a 2");
         });
 
         <!--#endif--> /* if rdetail.xml */