aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-08 14:10:38 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-08 14:10:38 +0200
commita73dbb307347735db3bc076aaa5f92b3e90361fa (patch)
tree3c7f6b239f4d2f963db3eb62223918b44b78e844 /view/js/main.js
parentb3f80c049f11b542402f62e390df2b352092f163 (diff)
downloadvolse-hubzilla-a73dbb307347735db3bc076aaa5f92b3e90361fa.tar.gz
volse-hubzilla-a73dbb307347735db3bc076aaa5f92b3e90361fa.tar.bz2
volse-hubzilla-a73dbb307347735db3bc076aaa5f92b3e90361fa.zip
delete conv items on the fly in background
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 552dd959e..7479b17d3 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -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');