X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Ftabs%2Fstatic%2Fjs%2Ftabs.js;h=64c6921a3451da84afd7fbb6bd8653c165b3bcd0;hb=fab9d61eb81f60358f2208614cd191773670be82;hp=b5b1cd0be90db87df405ea5d971271e96d97144c;hpb=ac2dda758798f7e44de062d370763c639cc6a375;p=myslice.git diff --git a/plugins/tabs/static/js/tabs.js b/plugins/tabs/static/js/tabs.js index b5b1cd0b..64c6921a 100644 --- a/plugins/tabs/static/js/tabs.js +++ b/plugins/tabs/static/js/tabs.js @@ -2,7 +2,9 @@ $.fn.Tabs = function( method ) { - $('a[data-toggle="tab"]').on('shown', function (e) { + // In Bootstrap 3, we need shown.bs.tab instrad of shown. + // see: http://bootply.com/bootstrap-3-migration-guide + $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { // find the plugin object inside the tab content referenced by the current tabs $('.plugin', $($(e.target).attr('href'))).trigger('show'); });