diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 0a0a030b95..0dd01ef2e4 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -281,6 +281,11 @@ } }); + $('#post-container').on('click', '.link', function() { + var pid = $(this).parents('li').attr('data-pid'); + $('#post_' + pid + '_link').val(window.location.href + "#" + pid).fadeToggle().select(); + }); + $('#post-container').delegate('.edit', 'click', function(e) { var pid = $(this).parents('li').attr('data-pid'), main = $(this).parents('.main-post'); diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 3c03a5cad7..2a5b329056 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -50,9 +50,14 @@