From fda5f021d871edfca944a1482339ce90bff9d04b Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 29 Oct 2023 20:20:57 +0530 Subject: [PATCH] app.js: added support for request blocking handler. Code refactoring changes done. --- DnsServerCore/www/js/apps.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DnsServerCore/www/js/apps.js b/DnsServerCore/www/js/apps.js index c1ff2ef1..2aac612c 100644 --- a/DnsServerCore/www/js/apps.js +++ b/DnsServerCore/www/js/apps.js @@ -86,6 +86,9 @@ function getAppRowHtml(app) { if (app.dnsApps[j].isAuthoritativeRequestHandler) labels += "Authoritative"; + + if (app.dnsApps[j].isRequestBlockingHandler) + labels += "Blocking"; if (app.dnsApps[j].isQueryLogger) labels += "Query Logs"; @@ -344,7 +347,7 @@ function installApp() { url: "/api/apps/install?token=" + sessionData.token + "&name=" + encodeURIComponent(appName), method: "POST", data: formData, - dataContentType: false, + contentType: false, processData: false, success: function (responseJSON) { $("#modalInstallApp").modal("hide"); @@ -386,7 +389,7 @@ function updateApp() { url: "/api/apps/update?token=" + sessionData.token + "&name=" + encodeURIComponent(appName), method: "POST", data: formData, - dataContentType: false, + contentType: false, processData: false, success: function (responseJSON) { $("#modalUpdateApp").modal("hide");