Difference between revisions of "MediaWiki:Common.js"

From LID SWM Planning and Design Guide
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
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. */
 
    jQuery(document).ready(function ($) {
 
        $('#myTab').tab();
 
    });
 
 
$('a[data-toggle="tabs"]').on('shown.bs.tab', function (e) {
 
  e.target // newly activated tab
 
  e.relatedTarget // previous active tab
 
})
 

Latest revision as of 00:16, 18 November 2017

/* Any JavaScript here will be loaded for all users on every page load. */