]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Regenerate bind9.xsl.h
authorOndřej Surý <ondrej@sury.org>
Fri, 26 Jul 2019 01:31:47 +0000 (21:31 -0400)
committerOndřej Surý <ondrej@sury.org>
Fri, 26 Jul 2019 01:31:47 +0000 (21:31 -0400)
bin/named/bind9.xsl.h

index 5fc8d6c600cb062dd40cc5e63a3ae7f7ed833f38..c6e250dcc1071768aa2334d2092aaf6232fd1a8f 100644 (file)
@@ -26,6 +26,14 @@ static char xslmsg[] =
        " var wid=0;\n"
        " $('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });\n"
        " $('table.zones').css('min-width', wid );\n"
+       " $(\"h2+table,h3+table,h4+table,h2+div,h3+div,h2+script,h3+script\").prev().append(' <a class=\"tabletoggle\" href=\"#\" style=\"font-size:small\">Show/Hide</a>');\n"
+       " $(\".tabletoggle\").click(function(){\n"
+       " var n = $(this).closest(\"h2,h3,h4\").next();\n"
+       " if (n.is(\"script\")) { n = n.next(); }\n"
+       " if (n.is(\"div\")) { n.toggleClass(\"hidden\"); n = n.next(); }\n"
+       " if (n.is(\"table\")) { n.toggleClass(\"hidden\"); }\n"
+       " return false;\n"
+       " });\n"
        " });\n"
        " </script>\n"
        "\n"
@@ -95,6 +103,10 @@ static char xslmsg[] =
        " font-size: 10pt;\n"
        " }\n"
        "\n"
+       " .hidden{\n"
+       " display: none;\n"
+       " }\n"
+       "\n"
        " .odd{\n"
        " background-color: #f0f0f0;\n"
        " }\n"