Merge pull request #1362 from pi-hole/jquery-3

Update jQuery to v3.5.1.
This commit is contained in:
XhmikosR
2020-06-04 17:38:38 +03:00
committed by GitHub
3 changed files with 9 additions and 9 deletions

View File

@@ -131,18 +131,20 @@ $(function () {
// Pull in data via AJAX
updateTopLists();
$("#domain-frequency tbody").on("click", "button", function () {
$("#domain-frequency tbody").on("click", "button", function (event) {
var url = $(this).parents("tr")[0].textContent.split(" ")[0];
if ($(this).context.textContent === " Blacklist") {
if (event.target.textContent.trim() === "Blacklist") {
blacklistUrl(url);
} else {
auditUrl(url);
}
});
$("#ad-frequency tbody").on("click", "button", function () {
$("#ad-frequency tbody").on("click", "button", function (event) {
var url = $(this).parents("tr")[0].textContent.split(" ")[0];
if ($(this).context.textContent === " Whitelist") {
if (event.target.textContent.trim() === "Whitelist") {
whitelistUrl(url);
} else {
auditUrl(url);

View File

@@ -107,7 +107,7 @@ $("#btnSearchExact").on("click", function () {
// Wrap form-group's buttons to next line when viewed on a small screen
$(window).on("resize", function () {
if ($(window).width() < 991) {
if ($(window).width() < 992) {
$(".form-group.input-group").removeClass("input-group").addClass("input-group-block");
$(".form-group.input-group-block > input").css("margin-bottom", "5px");
$(".form-group.input-group-block > .input-group-btn")

File diff suppressed because one or more lines are too long