aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-04 10:07:09 +0100
committerMax Kostikov <max@kostikov.co>2019-12-04 10:07:09 +0100
commitdad7bc82c3f4d826b3cc2b6fbeff588db44325c5 (patch)
tree7654c3035af943dffab7e2b9147dfde7a45a4c77 /view/js
parentb48a9d3f7511bcb7a1b5d5dcec06f170b0f6ac9d (diff)
parent0ee65ee9543ab50b06953ac9ec282228bc825359 (diff)
downloadvolse-hubzilla-dad7bc82c3f4d826b3cc2b6fbeff588db44325c5.tar.gz
volse-hubzilla-dad7bc82c3f4d826b3cc2b6fbeff588db44325c5.tar.bz2
volse-hubzilla-dad7bc82c3f4d826b3cc2b6fbeff588db44325c5.zip
Merge branch 'dev' into 'dev'
Ad unpin button for pinned content and fix unpin on unpinned item drop See merge request hubzilla/core!1795
Diffstat (limited to 'view/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 {