mirror of
https://github.com/pi-hole/web.git
synced 2025-12-22 19:58:27 +00:00
Be explicit about window.location
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ var dateformat = "MMMM Do YYYY, HH:mm";
|
|||||||
|
|
||||||
// Do we want to filter queries?
|
// Do we want to filter queries?
|
||||||
var GETDict = {};
|
var GETDict = {};
|
||||||
location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
|
window.location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
|
||||||
|
|
||||||
if("from" in GETDict && "until" in GETDict)
|
if("from" in GETDict && "until" in GETDict)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ function autofilter(){
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// Do we want to filter queries?
|
// Do we want to filter queries?
|
||||||
var GETDict = {};
|
var GETDict = {};
|
||||||
location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
|
window.location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
|
||||||
|
|
||||||
var APIstring = "api.php?getAllQueries";
|
var APIstring = "api.php?getAllQueries";
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ $(".nav-tabs a").on("shown.bs.tab", function (e) {
|
|||||||
window.history.pushState("", "", "?tab=" + tab);
|
window.history.pushState("", "", "?tab=" + tab);
|
||||||
if(tab === "piholedhcp")
|
if(tab === "piholedhcp")
|
||||||
{
|
{
|
||||||
location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user