aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 618436b2a..f8fe51ae6 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1160,7 +1160,8 @@ function dropItem(url, object) {
$('body').css('cursor', 'auto');
});
});
- $.post('pin/pin', { 'id' : id });
+ if($('#wall-item-pinned-') + id).length)
+ $.post('pin/pin', { 'id' : id });
return true;
}
else {