Treiem els logs
diff --git a/index.php b/index.php
index 9c018c3..9f363ab 100644
--- a/index.php
+++ b/index.php
@@ -24,7 +24,6 @@
<script>
$.post("./php/getusers.php", function(data, status){
$("#list").html(data);
- console.log(data);
});
</script>
</body>
diff --git a/js/utils.js b/js/utils.js
index d560bb0..7ed6897 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -6,8 +6,6 @@
};
function send_request(id, msg) {
- console.log(id, msg);
-
$.ajax({
'url': './php/request.php',
'type': 'GET',
diff --git a/main.php b/main.php
index c4b261c..cf88aa9 100644
--- a/main.php
+++ b/main.php
@@ -46,8 +46,8 @@
let checking = setInterval(function() {
$.ajax({ url: "./php/checkrequests.php", data: { id: userid }, type: 'GET',
success: function(data) {
- $("#state").load("./php/checkrequests.php?id=" + userid, function() {
- if (!mort) requested = check_requests($("#state").html(), victimnom, victimid, userid);
+ $("#state").load("./php/checkrequests.php?id=" + userid, function(response, status, xhr) {
+ if (!mort) requested = check_requests(response, victimnom, victimid, userid);
else clearInterval(checking);
});
}});