Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
User:Dragonjet/scripts/CommentQuote.js
(view source)
Revision as of 11:11, 28 December 2014
4 bytes removed
,
9 years ago
m
v0.4
Line 1:
Line 1:
(function($, ArticleComments){
(function($, ArticleComments){
"use strict";
"use strict";
−
console.log("Comment Quotes v0.
3
");
+
console.log("Comment Quotes v0.
4
");
function AddButtons(){
function AddButtons(){
Line 10:
Line 10:
$(".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.trim()+"''");
+
$("
textarea
#article-comm").val("> ''"+origMsg.trim()+"''");
return true;
return true;
});
});
Dragonjet
15
edits