]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
toggle graph/counter pairs
authorMark Andrews <marka@isc.org>
Wed, 15 May 2019 06:46:25 +0000 (16:46 +1000)
committerOndřej Surý <ondrej@isc.org>
Thu, 25 Jul 2019 12:03:10 +0000 (08:03 -0400)
bin/named/bind9.xsl

index 79a9a76a50aa30b514d39bdd533b16be871e6e77..c2effbd4c5ebaeae26853b90fe36666d9fe66a3d 100644 (file)
               var wid=0;
               $('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });
               $('table.zones').css('min-width', wid );
-              $("h2+table,h3+table,h4+table").prev().append(' <a class="tabletoggle" href="#" style="font-size:small">Show/Hide</a>');
-              $(".tabletoggle").click(function(){ $(this).closest("h2,h3,h4").next().toggleClass("hidden"); return false;});
+              $("h2+table,h3+table,h4+table,h2+div,h3+div").prev().append(' <a class="tabletoggle" href="#" style="font-size:small">Show/Hide</a>');
+              $(".tabletoggle").click(function(){
+                if ($(this).closest("h2,h3").next().is("div")) { $(this).closest("h2,h3").next().next().toggleClass("hidden"); };
+                $(this).closest("h2,h3,h4").next().toggleClass("hidden");
+                return false;});
           });
         </script>