-from unfold.composite import Composite
-
-class Tabs (Composite):
-
- def requirements (self):
- return { 'js_files' : ['js/tabs.js', 'js/bootstrap.js'],
- 'css_files' : ['css/bootstrap.css', 'css/tabs.css', ]
- }
-
- def template_file (self):
- return "tabs.html"
-
- # see Composite.py for the details of template_env, that exposes global
- # 'sons' as a list of sons with each a set of a few attributes
- def json_settings_list (self):
- return []
-
- def export_json_settings(self):
- return True
$.fn.Tabs = function( method ) {
- $('a[data-toggle="tab"]').on('shown', function (e) {
+ $('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');
});
+++ /dev/null
-<ul class="nav nav-tabs" id='tabs-{{ domid }}'>
-{% for son in sons %}
-<li{% if son.is_active %} class='active'{% endif %}> <a href="#tab-{{ son.domid }}" data-toggle="tab">{{ son.title }}</a> </li>
-{% endfor %}
-</ul><!--nav-tabs-->
-<div class="tab-content">
-{% for son in sons %}
-<div class="tab-pane fade in{% if son.is_active %} active{% endif %}" id="tab-{{ son.domid }}">
-{{ son.rendered }}
-</div><!--tab-pane-->
-{% endfor %}
-</div><!--tab-content-->
-datatables-1.9.4/
\ No newline at end of file
+datatables-1.9.4
\ No newline at end of file