diff --git a/scripts/pi-hole/js/gravity.js b/scripts/pi-hole/js/gravity.js index cd9bac3a..a208cae1 100644 --- a/scripts/pi-hole/js/gravity.js +++ b/scripts/pi-hole/js/gravity.js @@ -2,7 +2,7 @@ function eventsource() { var alInfo = $("#alInfo"); var alSuccess = $("#alSuccess"); var ta = $("#output"); - var source = new EventSource("php/gravity.sh.php"); + var source = new EventSource("scripts/pi-hole/php/gravity.sh.php"); ta.html(""); ta.show(); diff --git a/scripts/pi-hole/js/help.js b/scripts/pi-hole/js/help.js deleted file mode 100644 index 3e85a4d7..00000000 --- a/scripts/pi-hole/js/help.js +++ /dev/null @@ -1,7 +0,0 @@ -$( "#flush" ).click(function() { - if (confirm("Are you sure you want to flush the Pi-hole log file?")) { - document.location.href="../../help.php"; - } else { - // Do nothing! - } -}); diff --git a/scripts/pi-hole/js/list.js b/scripts/pi-hole/js/list.js index ff24f94e..de2692ad 100644 --- a/scripts/pi-hole/js/list.js +++ b/scripts/pi-hole/js/list.js @@ -10,7 +10,7 @@ function sub(index, entry) { var domain = $("#"+index); domain.hide("highlight"); $.ajax({ - url: "php/sub.php", + url: "scripts/pi-hole/php/sub.php", method: "post", data: {"domain":entry, "list":listType, "token":token}, success: function(response) { @@ -31,7 +31,7 @@ function refresh(fade) { list.fadeOut(100); } $.ajax({ - url: "php/get.php", + url: "scripts/pi-hole/php/get.php", method: "get", data: {"list":listType}, success: function(response) { @@ -78,7 +78,7 @@ function add() { alSuccess.hide(); alFailure.hide(); $.ajax({ - url: "php/add.php", + url: "scripts/pi-hole/php/add.php", method: "post", data: {"domain":domain.val(), "list":listType, "token":token}, success: function(response) { diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 0029ea3e..c68b412a 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -36,7 +36,7 @@ function add(domain,list) { alSuccess.hide(); alFailure.hide(); $.ajax({ - url: "php/add.php", + url: "scripts/pi-hole/php/add.php", method: "post", data: {"domain":domain, "list":list, "token":token}, success: function(response) { diff --git a/scripts/pi-hole/js/queryads.js b/scripts/pi-hole/js/queryads.js index 86822e51..7058d305 100644 --- a/scripts/pi-hole/js/queryads.js +++ b/scripts/pi-hole/js/queryads.js @@ -16,7 +16,7 @@ function eventsource() { } var host = window.location.host; - var source = new EventSource("http://"+host+"/admin/php/queryads.php?domain="+domain.val()+"&"+exact); + var source = new EventSource("http://"+host+"/admin/scripts/pi-hole/php/queryads.php?domain="+domain.val()+"&"+exact); // Reset and show field ta.empty();