+
+[% IF thread.post %]
+<script type="text/javascript">
+$(document).ready(function(){
+ $(".forum-post-header").append(
+ $("<span>").text(" | "));
+ $(".forum-post-header").append(
+ $("<a>").attr("href","#Reply").addClass("quotelink").text("Quote"));
+ $(".quotelink").click(function(){
+ var text = $(this).parents("legend").siblings().text();
+ var username = $(this).parents("legend").text().split(" ",1);
+ var oldtext = $("#replybox").val();
+ $("#replybox").val(oldtext + "\n[quote=" + username + "]" + text + "[/quote]\n");
+ });
+});
+</script>
+[% INCLUDE inc/markitup.tt2 %]
+[% END %]