Difference between revisions of "MediaWiki:Gadget-commentaddon.js"
Jump to navigation
Jump to search
(Some tweaking) |
(Added styling class) |
||
Line 3: | Line 3: | ||
var faqAddon = $('<div></div>'); | var faqAddon = $('<div></div>'); | ||
faqAddon.html('Please see our <a href="Guideline_Comments">comment guidelines</a> first.'); | faqAddon.html('Please see our <a href="Guideline_Comments">comment guidelines</a> first.'); | ||
+ | faqAddon.addClass('comments-guideline'); | ||
$('#flowthread .comment-replybox').prepend(faqAddon); | $('#flowthread .comment-replybox').prepend(faqAddon); | ||
}); | }); | ||
}]); | }]); |
Revision as of 20:25, 27 November 2020
RLQ.push(['jquery', function () {
$(document).ready(function() {
var faqAddon = $('<div></div>');
faqAddon.html('Please see our <a href="Guideline_Comments">comment guidelines</a> first.');
faqAddon.addClass('comments-guideline');
$('#flowthread .comment-replybox').prepend(faqAddon);
});
}]);