X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquerytable%2Fstatic%2Fjs%2Fquerytable.js;h=c790c9478b94ca87bc48e135ea5761989d3e0c24;hb=0f4998d04a3b1b370b3be129e57b052fb9ddc4fa;hp=a217657ec1f00dcc8fdcc401a678f3896a788ff9;hpb=30124fee47cfe16c4eedf2db2c67fda6cb7067e9;p=myslice.git diff --git a/plugins/querytable/static/js/querytable.js b/plugins/querytable/static/js/querytable.js index a217657e..c790c947 100644 --- a/plugins/querytable/static/js/querytable.js +++ b/plugins/querytable/static/js/querytable.js @@ -85,7 +85,6 @@ this.slick_options = { enableCellNavigation: false, enableColumnReorder: true, - explicitInitialization: true, }; this.slick_data=[]; @@ -108,6 +107,9 @@ this.slick_grid = new Slick.Grid(selector, this.slick_data, this.slick_columns, this.slick_options); this.slick_grid.setSelectionModel (new Slick.RowSelectionModel ({selectActiveRow: false})); this.slick_grid.registerPlugin (checkbox_selector); + // autotooltips: for showing the full column name when ellipsed + var auto_tooltips = new Slick.AutoTooltips ({ enableForHeaderCells: true }); + this.slick_grid.registerPlugin (auto_tooltips); this.columnpicker = new Slick.Controls.ColumnPicker (this.slick_columns, this.slick_grid, this.slick_options) @@ -338,7 +340,7 @@ if (debug) messages.debug("1-shot initializing dataTables content with " + this.slick_data.length + " lines"); var start=new Date(); this.slick_grid.setData (this.slick_data, true); - this.slick_grid.init(); + this.slick_grid.render(); var duration=new Date()-start; if (debug) messages.debug("setData+render took " + duration + " ms"); if (debug_deep) {