mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
@@ -73,7 +73,7 @@ function updateTopLists() {
|
||||
}
|
||||
|
||||
function add(domain,list) {
|
||||
var token = $("#token").html();
|
||||
var token = $("#token").text();
|
||||
$.ajax({
|
||||
url: "scripts/pi-hole/php/add.php",
|
||||
method: "post",
|
||||
|
||||
@@ -59,7 +59,7 @@ $(function () {
|
||||
var tableApi, statistics;
|
||||
|
||||
function add(domain,list) {
|
||||
var token = $("#token").html();
|
||||
var token = $("#token").text();
|
||||
var alInfo = $("#alInfo");
|
||||
var alList = $("#alList");
|
||||
var alDomain = $("#alDomain");
|
||||
|
||||
@@ -31,7 +31,7 @@ function eventsource() {
|
||||
var ta = $("#output");
|
||||
var upload = $( "#upload" );
|
||||
var checked = "";
|
||||
var token = encodeURIComponent($("#token").html());
|
||||
var token = encodeURIComponent($("#token").text());
|
||||
|
||||
if(upload.prop("checked"))
|
||||
{
|
||||
|
||||
@@ -59,7 +59,7 @@ function countDown(){
|
||||
|
||||
function piholeChange(action, duration)
|
||||
{
|
||||
var token = encodeURIComponent($("#token").html());
|
||||
var token = encodeURIComponent($("#token").text());
|
||||
var enaT = $("#enableTimer");
|
||||
var btnStatus;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
$.ajaxSetup({cache: false});
|
||||
|
||||
// Get PHP info
|
||||
var token = $("#token").html();
|
||||
var token = $("#token").text();
|
||||
var listType = $("#list-type").html();
|
||||
var fullName = listType === "white" ? "Whitelist" : "Blacklist";
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
var tableApi;
|
||||
|
||||
function add(domain,list) {
|
||||
var token = $("#token").html();
|
||||
var token = $("#token").text();
|
||||
var alertModal = $("#alertModal");
|
||||
var alProcessing = alertModal.find(".alProcessing");
|
||||
var alSuccess = alertModal.find(".alSuccess");
|
||||
|
||||
Reference in New Issue
Block a user