delete conv items on the fly in background
This commit is contained in:
parent
b3f80c049f
commit
a73dbb3073
@ -818,6 +818,21 @@ function doprofilelike(ident, verb) {
|
|||||||
$.get('like/' + ident + '?verb=' + verb, function() { window.location.href=window.location.href; });
|
$.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) {
|
function dosubthread(ident) {
|
||||||
unpause();
|
unpause();
|
||||||
$('#like-rotator-' + ident.toString()).spin('tiny');
|
$('#like-rotator-' + ident.toString()).spin('tiny');
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $item.drop.dropping}}
|
{{if $item.drop.dropping}}
|
||||||
<li role="presentation" class="divider"></li>
|
<li role="presentation" class="divider"></li>
|
||||||
<li role="presentation"><a role="menuitem" href="item/drop/{{$item.id}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}" ><i class="icon-trash"></i> {{$item.drop.delete}}</a></li>
|
<li role="presentation"><a role="menuitem" href="#" onclick="dropItem({{$item.id}}); return false;" title="{{$item.drop.delete}}" ><i class="icon-trash"></i> {{$item.drop.delete}}</a></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user