瀏覽代碼

Add domain json token to the template

FusionPBX 2 年之前
父節點
當前提交
f3d07c6140
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      themes/default/template.php

+ 2 - 2
themes/default/template.php

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