Add domain json token to the template

This commit is contained in:
FusionPBX 2022-11-28 21:07:18 -07:00 committed by GitHub
parent 421b5dd024
commit 57756eb2a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1096,11 +1096,11 @@
search = document.getElementById('domains_search');
if (search.value) {
//xhttp.open("GET", "/core/domains/domain_list.php?search="+search.value, true);
xhttp.open("GET", "/core/domains/domain_json.php?search="+search.value, true);
xhttp.open("GET", "/core/domains/domain_json.php?search="+search.value+"&{$domain_json_token_name}={$domain_json_token_hash}", true);
}
else {
//xhttp.open("GET", "/core/domains/domain_list.php", true);
xhttp.open("GET", "/core/domains/domain_json.php", true);
xhttp.open("GET", "/core/domains/domain_json.php?{$domain_json_token_name}={$domain_json_token_hash}", true);
}
xhttp.send();
}