aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-04 09:58:16 +0100
committerMax Kostikov <max@kostikov.co>2019-12-04 09:58:16 +0100
commitae0780fe3ffc49da03aac6d6f360ca77ccbe8f73 (patch)
tree7654c3035af943dffab7e2b9147dfde7a45a4c77 /view
parentd2a65ab1be88619985ae0c01c6143567b6271abf (diff)
downloadvolse-hubzilla-ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73.tar.gz
volse-hubzilla-ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73.tar.bz2
volse-hubzilla-ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73.zip
Unpin only pinned items on item drop
Diffstat (limited to 'view')
-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 {