• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
02
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.01</a>');
+
$(".tools", this).prepend('<a href="#article-comments" class="quoteBtn actionButton" data-id="'+$(this).attr("id")+'">Quote.02</a>');
 
});
 
});
 
 
 
$(".quoteBtn").on("click", function(){
 
$(".quoteBtn").on("click", function(){
 
var origMsg = $(".article-comm-text", $("#"+$(this).data("id"))).text();
 
var origMsg = $(".article-comm-text", $("#"+$(this).data("id"))).text();
$("#article-comm.wikiaEditor").val("> ''"+origMsg+"''");
+
console.log(origMsg);
 +
//$("#article-comm.wikiaEditor").val("> ''"+origMsg+"''");
 
return true;
 
return true;
 
});
 
});
15

edits

Navigation menu