Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
User:Dragonjet/scripts/CommentQuote.js
(view source)
Revision as of 16:13, 21 December 2014
9 bytes added
,
10 years ago
m
val instead of text
Line 4:
Line 4:
function AddButtons(){
function AddButtons(){
$("#article-comments-ul .comment").each(function(){
$("#article-comments-ul .comment").each(function(){
−
$(".tools", this).prepend('<a href="#article-comments" class="quoteBtn actionButton" data-id="'+$(this).attr("id")+'">Quote</a>');
+
$(".tools", this).prepend('<a href="#article-comments" class="quoteBtn actionButton" data-id="'+$(this).attr("id")+'">Quote
.01
</a>');
});
});
$(".quoteBtn").on("click", function(){
$(".quoteBtn").on("click", function(){
var origMsg = $(".article-comm-text", $("#"+$(this).data("id"))).id();
var origMsg = $(".article-comm-text", $("#"+$(this).data("id"))).id();
−
$("#article-comm.wikiaEditor").
text
("> "+origMsg);
+
$("#article-comm.wikiaEditor").
val
(">
''
"+origMsg
+"''"
);
return true;
return true;
});
});
Dragonjet
15
edits