Difference between revisions of "MediaWiki:Common.js"

From LID SWM Planning and Design Guide
Jump to navigation Jump to search
Line 4: Line 4:
 
         $('#myTab').tab();
 
         $('#myTab').tab();
 
     });
 
     });
 
$('a[data-toggle="tabs"]').on('shown.bs.tab', function (e) {
 
  e.target // newly activated tab
 
  e.relatedTarget // previous active tab
 
})
 

Revision as of 15:55, 19 February 2017

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

    jQuery(document).ready(function ($) {
        $('#myTab').tab();
    });