No reload when deleting chat
This commit is contained in:
parent
aaaa49c1e2
commit
47e82adbad
1 changed files with 5 additions and 3 deletions
|
@ -135,9 +135,11 @@
|
|||
data: elt.data(),
|
||||
dataType: 'json',
|
||||
success: function(data){
|
||||
console.log('delete ajax call success!');
|
||||
location.reload();
|
||||
}
|
||||
elt.closest('li').hide();
|
||||
},
|
||||
fail: function(data) {
|
||||
alert('Fail to delete');
|
||||
},
|
||||
});
|
||||
});
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue