Difference between revisions of "MediaWiki:Common.js"
From NoSQLZoo
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
$(".q").each(function(){ | $(".q").each(function(){ | ||
− | $(".def").after("<textarea/>"); | + | $(".def",this).after("<button/>"); |
+ | $(".def",this).after("<textarea/>"); | ||
}) | }) |
Revision as of 10:34, 9 July 2015
/* Any JavaScript here will be loaded for all users on every page load. */
$(".q").each(function(){
$(".def",this).after("<button/>");
$(".def",this).after("<textarea/>");
})