diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/js/main.js | 3 | ||||
-rwxr-xr-x | view/tpl/conv_item.tpl | 2 | ||||
-rw-r--r-- | view/tpl/pinned_item.tpl | 2 |
3 files changed, 4 insertions, 3 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 { diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 484554971..dcc06d5c4 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -172,7 +172,7 @@ <a class="dropdown-item" href="#" onclick="itemFiler({{$item.id}}); return false;"><i id="filer-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-folder-open" title="{{$item.filer}}"></i>{{$item.filer}}</a> {{/if}} {{if $item.pinnable}} - <a class="dropdown-item dropdown-item-pinnable" href="#" onclick="dopin({{$item.id}}); return false;" title="{{$item.pinme}}" id="item-pinnable-{{$item.id}}"><i class="generic-icons-nav fa fa-fw fa-thumb-tack"></i>{{$item.pinme}}</a> + <a class="dropdown-item dropdown-item-pinnable" href="#" onclick="dopin({{$item.id}}); return false;" id="item-pinnable-{{$item.id}}"><i class="generic-icons-nav fa fa-fw fa-thumb-tack"></i>{{$item.pinme}}</a> {{/if}} {{if $item.bookmark}} <a class="dropdown-item" href="#" onclick="itemBookmark({{$item.id}}); return false;"><i id="bookmarker-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-bookmark" title="{{$item.bookmark}}"></i>{{$item.bookmark}}</a> diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index 0dad276d0..bfbdc87ff 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -137,10 +137,10 @@ {{if $plink}} <a class="dropdown-item" href="{{$plink.href}}" title="{{$plink.title}}" class="u-url"><i class="generic-icons-nav fa fa-fw fa-external-link"></i>{{$plink.title}}</a> {{/if}} + <a class="dropdown-item dropdown-item-pinnable" href="#" onclick="dopin({{$item.id}}); return false;"><i class="generic-icons-nav fa fa-fw fa-thumb-tack"></i>{{$item.pinme}}</a> {{if $hide}} <a class="dropdown-item" href="#" onclick="dopinhide({{$id}}); return false;" class="u-url"><i class="generic-icons-nav fa fa-fw fa-remove"></i>{{$hide}}</a> {{/if}} - </div> </div> </div> |