aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-12 14:30:33 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-12 14:30:33 +0200
commit70b109702ef20d0ebad027a98964ceae1fb216c3 (patch)
tree48e7edb413af553d32051faffc5fd901d997f98f /view/js/main.js
parent962fdf08c0f3c83927ed23a1b6f384b2c3d74aae (diff)
downloadvolse-hubzilla-70b109702ef20d0ebad027a98964ceae1fb216c3.tar.gz
volse-hubzilla-70b109702ef20d0ebad027a98964ceae1fb216c3.tar.bz2
volse-hubzilla-70b109702ef20d0ebad027a98964ceae1fb216c3.zip
make dropItem more universal and move delete up in the dropdown menu
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js5
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');
});