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