Update ajax handler + indicate status

This commit is contained in:
billz
2020-03-27 09:24:48 +00:00
parent 6299540216
commit ca7bde25c6
3 changed files with 21 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ if (isset($_POST['blocklist_id'])) {
$blocklist = $notracking_url . $file;
exec("sudo /etc/raspap/adblock/update_blocklist.sh $blocklist $file $dnsmasq_config", $return);
echo json_encode($return);
$jsonData = ['return'=>$return];
echo json_encode($jsonData);
}