diff --git a/CHANGES b/CHANGES index f359d7477a..17836cffd8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5267. [func] Allow statistics groups display to be toggleable. + [GL #1030] + 5266. [bug] named-checkconf failed to report dnstap-output missing from named.conf when dnstap was specified. [GL #1136] diff --git a/bin/named/bind9.xsl b/bin/named/bind9.xsl index 00bca86137..f36927794f 100644 --- a/bin/named/bind9.xsl +++ b/bin/named/bind9.xsl @@ -21,6 +21,14 @@ 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,h2+div,h3+div,h2+script,h3+script").prev().append(' Show/Hide'); + $(".tabletoggle").click(function(){ + var n = $(this).closest("h2,h3,h4").next(); + if (n.is("script")) { n = n.next(); } + if (n.is("div")) { n.toggleClass("hidden"); n = n.next(); } + if (n.is("table")) { n.toggleClass("hidden"); } + return false; + }); }); @@ -90,6 +98,10 @@ font-size: 10pt; } + .hidden{ + display: none; + } + .odd{ background-color: #f0f0f0; }