X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Ftabs%2Fstatic%2Fjs%2Ftabs.js;fp=plugins%2Ftabs%2Fstatic%2Fjs%2Ftabs.js;h=75ce452a826d699ab1de8c099ab4bcbc10d241e2;hb=9a486e42cde8ce57e6e12111423c49780c72ff1a;hp=64c6921a3451da84afd7fbb6bd8653c165b3bcd0;hpb=1c6cc165d68615e58949124447b5eb8bc4c995b5;p=unfold.git diff --git a/plugins/tabs/static/js/tabs.js b/plugins/tabs/static/js/tabs.js index 64c6921a..75ce452a 100644 --- a/plugins/tabs/static/js/tabs.js +++ b/plugins/tabs/static/js/tabs.js @@ -1,14 +1,10 @@ (function($){ - $.fn.Tabs = function( method ) { - - // In Bootstrap 3, we need shown.bs.tab instrad of shown. + // In Bootstrap 3, we need 'shown.bs.tab' instead 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'); }); - }; - })( jQuery );