Difference between revisions of "MediaWiki:Common.js"

From The Powder Toy
Jump to: navigation, search
(Correct saveblock function)
(Tooltips)
Line 2: Line 2:
 
$(document).bind("ready", function(){
 
$(document).bind("ready", function(){
 
LoadBlocks();
 
LoadBlocks();
 +
$(document).find("[data-toggle='tooltip']").tooltip();
 
});
 
});
 
function LoadBlocks(){
 
function LoadBlocks(){

Revision as of 15:11, 5 October 2014

/* Any JavaScript here will be loaded for all users on every page load. */
$(document).bind("ready", function(){
	LoadBlocks();
	$(document).find("[data-toggle='tooltip']").tooltip();
});
function LoadBlocks(){
	$(".ForumSaveBlock").each(function(Index, Element){
		SaveBlock(Element);
	});
}