delete conv items on the fly in background

This commit is contained in:
Mario Vavti
2015-04-08 14:10:38 +02:00
parent b3f80c049f
commit a73dbb3073
2 changed files with 16 additions and 1 deletions

View File

@@ -818,6 +818,21 @@ function doprofilelike(ident, verb) {
$.get('like/' + ident + '?verb=' + verb, function() { window.location.href=window.location.href; });
}
function dropItem(ident) {
var object = '#thread-wrapper-' + ident;
var confirm = confirmDelete();
if(confirm) {
$('body').css('cursor', 'wait');
$(object).fadeTo('fast', 0.33, function () {
$.get('item/drop/' + ident).done(function() {
$(object).remove();
$('body').css('cursor', 'auto');
});
});
}
}
function dosubthread(ident) {
unpause();
$('#like-rotator-' + ident.toString()).spin('tiny');