From 556c46d3df08c4e7b286b8ec1f5e8be195d31b02 Mon Sep 17 00:00:00 2001 From: Alexander Shursha Date: Tue, 10 Jul 2018 07:16:31 +0300 Subject: [PATCH] www/web-proxy-sso: jQuery 3 migration. (cherry picked from commit b3c8f91470c694832e15809ac89f6c0ea0641f38) (cherry picked from commit 66b095926f6f40f9aa47e2961e49a9861a5f9ab0) --- www/web-proxy-sso/Makefile | 1 + .../opnsense/mvc/app/views/OPNsense/ProxySSO/index.volt | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/web-proxy-sso/Makefile b/www/web-proxy-sso/Makefile index afb7d7cef..dabf63449 100644 --- a/www/web-proxy-sso/Makefile +++ b/www/web-proxy-sso/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= web-proxy-sso PLUGIN_VERSION= 2.2 +PLUGIN_REVISION= 1 PLUGIN_COMMENT= Kerberos authentication module PLUGIN_DEPENDS= msktutil cyrus-sasl-gssapi PLUGIN_MAINTAINER= evbevz@gmail.com diff --git a/www/web-proxy-sso/src/opnsense/mvc/app/views/OPNsense/ProxySSO/index.volt b/www/web-proxy-sso/src/opnsense/mvc/app/views/OPNsense/ProxySSO/index.volt index ee51ed264..0160778b9 100644 --- a/www/web-proxy-sso/src/opnsense/mvc/app/views/OPNsense/ProxySSO/index.volt +++ b/www/web-proxy-sso/src/opnsense/mvc/app/views/OPNsense/ProxySSO/index.volt @@ -114,7 +114,7 @@ // clear data $("#" + index).html(""); - $(".help-block[for='" + index + "']").html(""); + $(".help-block[id*='" + index + "']").html(""); if(value.status == "ok") { jQuery('
', { @@ -122,7 +122,7 @@ class: 'fa fa-check-circle text-success', }).appendTo("#" + index); if(value.message) { - $(".help-block[for='" + index + "']").html(value.message); + $(".help-block[id*='" + index + "']").html(value.message); } } else if(value.status == "failure") { @@ -131,7 +131,7 @@ class: 'fa fa-times-circle text-danger', }).appendTo("#" + index); if(value.message) { - $(".help-block[for='" + index + "']").html(value.message); + $(".help-block[id*='" + index + "']").html(value.message); } } else { @@ -143,7 +143,7 @@ id: index + '_dump', text: htmlDecode(value.dump), class: 'hidden', - }).appendTo(".help-block[for='" + index + "']"); + }).appendTo(".help-block[id*='" + index + "']"); jQuery('', { text: "{{ lang._('Show dump') }}", href: 'javascript:showDump("' + index + '");',