Difference between revisions of "MediaWiki:Gadget-commentaddon.js"
Jump to navigation
Jump to search
(Just testing a possible FAQ hint for the comment box) |
(Some tweaking) |
||
Line 2: | Line 2: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
var faqAddon = $('<div></div>'); | var faqAddon = $('<div></div>'); | ||
− | faqAddon. | + | faqAddon.html('Please see our <a href="Guideline_Comments">comment guidelines</a> first.'); |
− | $('.comment-replybox | + | $('#flowthread .comment-replybox').prepend(faqAddon); |
}); | }); | ||
}]); | }]); |
Revision as of 20:20, 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.');
$('#flowthread .comment-replybox').prepend(faqAddon);
});
}]);