Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
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. */ | ||
− | $('#myTab | + | $('#myTab').tab(); |
− | + | }) | |
− | + | ||
− | |||
$('a[data-toggle="tabs"]').on('shown.bs.tab', function (e) { | $('a[data-toggle="tabs"]').on('shown.bs.tab', function (e) { | ||
e.target // newly activated tab | e.target // newly activated tab | ||
e.relatedTarget // previous active tab | e.relatedTarget // previous active tab | ||
}) | }) | ||
− | |||
− | |||
− |
Revision as of 15:39, 19 February 2017
/* Any JavaScript here will be loaded for all users on every page load. */
$('#myTab').tab();
})
$('a[data-toggle="tabs"]').on('shown.bs.tab', function (e) {
e.target // newly activated tab
e.relatedTarget // previous active tab
})