From d84d096e7e527108b15e8f557b07407ed22ca452 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 19 Sep 2013 16:24:30 -0400 Subject: [PATCH 1/2] added post links --- public/src/forum/topic.js | 5 +++++ public/templates/topic.tpl | 8 ++++++++ 2 files changed, 13 insertions(+) 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..7f879dbf02 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -50,9 +50,14 @@
+ +
+ + +
{main_posts.content}
@@ -106,9 +111,12 @@
+
+ +
{posts.content}
From 6912e77d25ee84a75ea7b839492a69869b30aa10 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 19 Sep 2013 16:25:51 -0400 Subject: [PATCH 2/2] removed data-pid from buttons --- public/templates/topic.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 7f879dbf02..2a5b329056 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -50,7 +50,7 @@
- + @@ -111,7 +111,7 @@
- +