diff options
author | Max Kostikov <max@kostikov.co> | 2019-12-03 16:44:27 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-12-03 16:44:27 +0100 |
commit | 428b2cca216abe8172e71a2da5f52ef8264ee52f (patch) | |
tree | 9c80df8b1d1e0e36d3701c4ccab8db051a666fb0 /view | |
parent | 28a316f73f1997d72f497523d7521c6bd9736d90 (diff) | |
download | volse-hubzilla-428b2cca216abe8172e71a2da5f52ef8264ee52f.tar.gz volse-hubzilla-428b2cca216abe8172e71a2da5f52ef8264ee52f.tar.bz2 volse-hubzilla-428b2cca216abe8172e71a2da5f52ef8264ee52f.zip |
Minor pinned content processing fixes
Diffstat (limited to 'view')
-rw-r--r-- | view/js/main.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js index 24840ca98..618436b2a 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1124,7 +1124,7 @@ function doscrollback(pos) { function dopin(id) { id = id.toString(); $('#like-rotator-' + id).show(); - $.post('pin', { 'id' : id }) + $.post('pin/pin', { 'id' : id }) .done(function() { var i = $('#wall-item-pinned-' + id); var me = $('#item-pinnable-' + id); @@ -1133,7 +1133,6 @@ function dopin(id) { $('#pinned-wrapper-' + id).fadeTo('fast', 0.33, function() { this.remove(); }); }); }; - $('.wall-item-pinned').remove(); if(i.length) me.html(me.html().replace(aStr['unpin_item'],aStr['pin_item'])); else { @@ -1156,12 +1155,12 @@ function dropItem(url, object) { var id = url.split('/')[2]; $('body').css('cursor', 'wait'); $(object + ', #pinned-wrapper-' + id).fadeTo('fast', 0.33, function () { - $.post('pin', { 'id' : id }); $.get(url).done(function() { $(object + ', #pinned-wrapper-' + id).remove(); $('body').css('cursor', 'auto'); }); }); + $.post('pin/pin', { 'id' : id }); return true; } else { |