Difference between revisions of "MediaWiki:Common.js"
From Glossary of Forensic Document Examination & Pattern Recognition
m |
m |
||
Line 2: | Line 2: | ||
$('#wholeTabs a').click(function (e) { | $('#wholeTabs a').click(function (e) { | ||
− | |||
− | |||
var children = $(this).children(); | var children = $(this).children(); | ||
for (var i = 0; i < children.length; i++) { | for (var i = 0; i < children.length; i++) { |
Revision as of 15:41, 22 August 2014
/* Any JavaScript here will be loaded for all users on every page load. */ $('#wholeTabs a').click(function (e) { var children = $(this).children(); for (var i = 0; i < children.length; i++) { var child = children[i]; $(child).tab('show') } }) $('#wholeTabsOrig a').click(function (e) { e.preventDefault() $(this).tab('show') }) $('#alphabeticTabs a').click(function (e) { e.preventDefault() $(this).tab('show') })