diff --git a/groups-clients.php b/groups-clients.lp similarity index 93% rename from groups-clients.php rename to groups-clients.lp index 5a027b39..f778fa69 100644 --- a/groups-clients.php +++ b/groups-clients.lp @@ -1,12 +1,11 @@ - diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index f2ad8246..024848b7 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -5,17 +5,18 @@ * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ -/* global utils:false */ +/* global utils:false, updateFtlInfo:false */ var table; var groups = []; var token = $("#token").text(); function reloadClientSuggestions() { - $.post( - "scripts/pi-hole/php/groups.php", - { action: "get_unconfigured_clients", token: token }, - function (data) { + $.ajax({ + url: "/api/clients/_suggestions", + type: "GET", + dataType: "json", + success: function (data) { var sel = $("#select"); sel.empty(); @@ -27,41 +28,62 @@ function reloadClientSuggestions() { sel.append($("