No reload when deleting chat

This commit is contained in:
cuom1999 2021-06-16 19:39:09 -05:00
parent aaaa49c1e2
commit 47e82adbad

View file

@ -135,9 +135,11 @@
data: elt.data(), data: elt.data(),
dataType: 'json', dataType: 'json',
success: function(data){ success: function(data){
console.log('delete ajax call success!'); elt.closest('li').hide();
location.reload(); },
} fail: function(data) {
alert('Fail to delete');
},
}); });
}); });
{% endif %} {% endif %}