Fix php links in js files

Also removed help.js because it's no longer used
This commit is contained in:
Mcat12
2016-12-19 19:59:08 -05:00
parent d1da1de597
commit 30d70baf5e
5 changed files with 6 additions and 13 deletions

View File

@@ -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();

View File

@@ -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!
}
});

View File

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

View File

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

View File

@@ -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();