diff options
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js index 7479b17d3..d7777ea8c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -819,13 +819,12 @@ function doprofilelike(ident, verb) { } -function dropItem(ident) { - var object = '#thread-wrapper-' + ident; +function dropItem(url, object) { var confirm = confirmDelete(); if(confirm) { $('body').css('cursor', 'wait'); $(object).fadeTo('fast', 0.33, function () { - $.get('item/drop/' + ident).done(function() { + $.get(url).done(function() { $(object).remove(); $('body').css('cursor', 'auto'); }); |