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(),
|
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 %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue