X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquery_editor%2Fstatic%2Fjs%2Fquery_editor.js;h=90d113dc9a23b2058c041f549b6da93263f00df3;hb=8c864591e6ddfed6ca56b529c779dfa4499829da;hp=8b739f02ef5918fbc1c6a4bc9500467a4af68c9b;hpb=955af6c084ef3469a6eea5680e79240fb9910afd;p=myslice.git diff --git a/plugins/query_editor/static/js/query_editor.js b/plugins/query_editor/static/js/query_editor.js index 8b739f02..90d113dc 100644 --- a/plugins/query_editor/static/js/query_editor.js +++ b/plugins/query_editor/static/js/query_editor.js @@ -72,19 +72,21 @@ // We are currently using a DataTable display, but another browsing component could be better //jQuery('#'+this.options.plugin_uuid+'-table').dataTable... var metaTable = this.elmt('table').dataTable({ - bFilter : false, - bPaginate : false, - bInfo : false, - sScrollX : '100%', // Horizontal scrolling - sScrollY : '200px', - //bJQueryUI : true, // Use jQuery UI - bProcessing : true, // Loading - aaSorting : [[ 1, "asc" ]], // sort by column fields on load - aoColumnDefs: [ - { 'bSortable': false, 'aTargets': [ 0 ]}, - { 'sWidth': '8px', 'aTargets': [ 0 ] }, - { 'sWidth': '8px', 'aTargets': [ 4 ] } // XXX NB OF COLS - ] +// Thierry : I'm turning off all the dataTables options for now, so that +// the table displays more properly again, might need more tuning though +// bFilter : false, +// bPaginate : false, +// bInfo : false, +// sScrollX : '100%', // Horizontal scrolling +// sScrollY : '200px', +// //bJQueryUI : true, // Use jQuery UI +// bProcessing : true, // Loading +// aaSorting : [[ 1, "asc" ]], // sort by column fields on load +// aoColumnDefs: [ +// { 'bSortable': false, 'aTargets': [ 0 ]}, +// { 'sWidth': '8px', 'aTargets': [ 0 ] }, +// { 'sWidth': '8px', 'aTargets': [ 4 ] } // XXX NB OF COLS +// ] }); // Actions on the newly added fields @@ -190,7 +192,7 @@ //console.log(record); availableTags = this.availableTags; jQuery.each(record,function(key,value){ - value = get_value(value); + value = unfold.get_value(value); if(!availableTags.hasOwnProperty(key)){availableTags[key]=new Array();} //availableTags[key].push(value); var currentArray = availableTags[key]; @@ -292,7 +294,7 @@ var availableTags={}; jQuery.each (rows, function(index, obj) { jQuery.each(obj,function(key,value){ - value = get_value(value); + value = unfold.get_value(value); if(!availableTags.hasOwnProperty(key)){availableTags[key]=new Array();} //availableTags[key].push(value); var currentArray=availableTags[key];