From: Aram Sargsyan Date: Fri, 26 Sep 2025 12:51:37 +0000 (+0000) Subject: Fix the charts in the statistics channel X-Git-Tag: v9.21.17~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3013a8b1645d08e4f78225429c55d31c26db4e;p=thirdparty%2Fbind9.git Fix the charts in the statistics channel The statistics channel's HTML presentation has charts, but it has a couple of problems. 1. Because of an inconsistent condition, a chart's JS code might have been executed, while the HTML markup wasn't present, and this is causing a JS error. 2. The feature is turned off on Mozilla-based browsers. Fix the inconsistency in conditions, remove the conditional rendering which disabled the feature for Mozilla-based browsers by looking at the XSLT processor's name, and fix indentation inconsistencies. --- diff --git a/bin/named/bind9.xsl b/bin/named/bind9.xsl index ae1820de0d5..359c2d99e4e 100644 --- a/bin/named/bind9.xsl +++ b/bin/named/bind9.xsl @@ -35,64 +35,61 @@ }); - - - - - // Server Incoming Requests by opcode - graphs.push({ - 'title' : "Server Incoming Requests by DNS Opcode", - 'target': 'chart_incoming_opcodes', - 'style': 'barchart', - 'data': [['Opcode','Counter'],['',],]}); - - -