75ce452a826d699ab1de8c099ab4bcbc10d241e2
[myslice.git] / plugins / tabs / static / js / tabs.js
1 (function($){
2     $.fn.Tabs = function( method ) {
3         // In Bootstrap 3, we need 'shown.bs.tab' instead of 'shown'
4         // see: http://bootply.com/bootstrap-3-migration-guide
5         $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
6           // find the plugin object inside the tab content referenced by the current tabs
7           $('.plugin', $($(e.target).attr('href'))).trigger('show');
8         });
9     };
10 })( jQuery );