X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquery_editor%2Fquery_editor.js;h=ff2136e0acb369db9d6118058af413ab7cde7fe2;hb=785bbb5d786f64e50b16ed07904305fe557eaf8f;hp=9f130f9f7000ed301686b8b459a4d360b6acae9d;hpb=e445cc0ae92f3927e7d29e9d271fea7f8dee05a6;p=myslice.git 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) {