www/web-proxy-sso: jQuery 3 migration.

(cherry picked from commit b3c8f91470)
(cherry picked from commit 66b095926f)
This commit is contained in:
Alexander Shursha 2018-07-10 07:16:31 +03:00 committed by Franco Fichtner
parent 14437c1ccb
commit 556c46d3df
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -114,7 +114,7 @@
// clear data
$("#" + index).html("");
$(".help-block[for='" + index + "']").html("");
$(".help-block[id*='" + index + "']").html("");
if(value.status == "ok") {
jQuery('<div/>', {
@ -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('<a/>', {
text: "{{ lang._('Show dump') }}",
href: 'javascript:showDump("' + index + '");',