added new files for demo
[myslice.git] / demo_trash / tabs / static / js / tabs.js
diff --git a/demo_trash/tabs/static/js/tabs.js b/demo_trash/tabs/static/js/tabs.js
new file mode 100644 (file)
index 0000000..b5b1cd0
--- /dev/null
@@ -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 );