updated some fixes for the demo
authorJordan Augé <jordan.auge@lip6.fr>
Thu, 26 Sep 2013 15:28:40 +0000 (17:28 +0200)
committerJordan Augé <jordan.auge@lip6.fr>
Thu, 26 Sep 2013 15:28:40 +0000 (17:28 +0200)
plugins/tabs/__init__.py
plugins/tabs/static/js/tabs.js
plugins/tabs/templates/tabs.html [deleted file]
third-party/datatables

index 6da94da..e69de29 100644 (file)
@@ -1,19 +0,0 @@
-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
index b5b1cd0..3a4e3e5 100644 (file)
@@ -2,7 +2,7 @@
 
     $.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');
         });
diff --git a/plugins/tabs/templates/tabs.html b/plugins/tabs/templates/tabs.html
deleted file mode 100644 (file)
index 298dec9..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<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-->
index e657a7e..ce40f55 120000 (symlink)
@@ -1 +1 @@
-datatables-1.9.4/
\ No newline at end of file
+datatables-1.9.4
\ No newline at end of file