X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo_trash%2Ftabs%2Fstatic%2Fjs%2Ftabs.js;fp=demo_trash%2Ftabs%2Fstatic%2Fjs%2Ftabs.js;h=b5b1cd0be90db87df405ea5d971271e96d97144c;hb=b753eb173aba7fdd1fffae461f81f32dc9879e8b;hp=0000000000000000000000000000000000000000;hpb=5d8da8c6bac88f51535c09411867de676dd8e99c;p=unfold.git diff --git a/demo_trash/tabs/static/js/tabs.js b/demo_trash/tabs/static/js/tabs.js new file mode 100644 index 00000000..b5b1cd0b --- /dev/null +++ b/demo_trash/tabs/static/js/tabs.js @@ -0,0 +1,12 @@ +(function($){ + + $.fn.Tabs = function( method ) { + + $('a[data-toggle="tab"]').on('shown', function (e) { + // find the plugin object inside the tab content referenced by the current tabs + $('.plugin', $($(e.target).attr('href'))).trigger('show'); + }); + + }; + +})( jQuery );