diff options
-rw-r--r-- | view/js/main.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/view/js/main.js b/view/js/main.js index 9ef81b72c..f427df8ad 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1284,18 +1284,18 @@ function dropItem(url, object, b64mid) { $.get(url, function() { $(object + ', #pinned-wrapper-' + id).remove(); $('body').css('cursor', 'auto'); + + if (typeof b64mid !== typeof undefined) { + $('[data-b64mid=\'' + b64mid + '\']').fadeOut(function() { + this.remove(); + }); + } }); if($('#wall-item-pinned-' + id).length) { $.post('pin/pin', { 'id' : id }); } - if (typeof b64mid !== typeof undefined) { - $('[data-b64mid=\'' + b64mid + '\']').fadeOut(function() { - this.remove(); - }); - } - return true; } else { |