From 785bbb5d786f64e50b16ed07904305fe557eaf8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jordan=20Aug=C3=A9?= Date: Thu, 8 Aug 2013 23:11:41 +0200 Subject: [PATCH] plugins: updated query_editor --- plugins/query_editor/__init__.py | 1 + plugins/query_editor/query_editor.js | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/query_editor/__init__.py b/plugins/query_editor/__init__.py index 98e7f9fc..1a429898 100644 --- a/plugins/query_editor/__init__.py +++ b/plugins/query_editor/__init__.py @@ -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', ] diff --git a/plugins/query_editor/query_editor.js b/plugins/query_editor/query_editor.js index 9f130f9f..ff2136e0 100644 --- a/plugins/query_editor/query_editor.js +++ b/plugins/query_editor/query_editor.js @@ -56,13 +56,11 @@ nCloneTh.innerHTML = 'Info'; 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 @@ -171,7 +169,7 @@ this.uncheck_field(field); }, - /* Former code */ + /* Former code not used at the moment */ print_field_description: function(field_header, div_id) { -- 2.43.0