mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Merge pull request #1362 from pi-hole/jquery-3
Update jQuery to v3.5.1.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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")
|
||||
|
||||
6
scripts/vendor/jquery.min.js
vendored
6
scripts/vendor/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user