plugins: updated query_editor
authorJordan Augé <jordan.auge@lip6.fr>
Thu, 8 Aug 2013 21:11:41 +0000 (23:11 +0200)
committerJordan Augé <jordan.auge@lip6.fr>
Thu, 8 Aug 2013 21:11:41 +0000 (23:11 +0200)
plugins/query_editor/__init__.py
plugins/query_editor/query_editor.js

index 98e7f9f..1a42989 100644 (file)
@@ -17,6 +17,7 @@ class QueryEditor(Plugin):
             ] ,
             'css_files': [
                 'css/query_editor.css',
+                'css/jquery-ui.css',
                 'css/demo_page.css',
                 'css/demo_table.css',
             ]
index 9f130f9..ff2136e 100644 (file)
             nCloneTh.innerHTML = '<b>Info</b>';
             nCloneTd.className = "center";
             nCloneTh.className = "center";
-            // XXX
-            jQuery('#'+this.options.plugin_uuid+'_fields thead tr').each( function () {
-                this.insertBefore( nCloneTh, this.childNodes[0] );
+            this.el('table thead tr').each(function() {
+                this.insertBefore(nCloneTh, this.childNodes[0]);
             });
-            // XXX
-            jQuery('#'+this.options.plugin_uuid+'_fields tbody tr').each( function () {
-                this.insertBefore(  nCloneTd.cloneNode( true ), this.childNodes[0] );
+            this.el('table tbody tr').each(function() {
+                this.insertBefore(nCloneTd.cloneNode( true ), this.childNodes[0]);
             });
          
             // We are currently using a DataTable display, but another browsing component could be better
             this.uncheck_field(field);
         },
 
-        /* Former code */
+        /* Former code not used at the moment */
 
         print_field_description: function(field_header, div_id) 
         {