diff options
author | Max Kostikov <max@kostikov.co> | 2019-12-04 09:58:16 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-12-04 09:58:16 +0100 |
commit | ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73 (patch) | |
tree | 7654c3035af943dffab7e2b9147dfde7a45a4c77 /view/js/main.js | |
parent | d2a65ab1be88619985ae0c01c6143567b6271abf (diff) | |
download | volse-hubzilla-ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73.tar.gz volse-hubzilla-ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73.tar.bz2 volse-hubzilla-ae0780fe3ffc49da03aac6d6f360ca77ccbe8f73.zip |
Unpin only pinned items on item drop
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 3 |
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 { |