get initial display to behave as expected
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 4 Dec 2013 16:43:52 +0000 (17:43 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 4 Dec 2013 16:43:52 +0000 (17:43 +0100)
plugins/querytable/static/js/querytable.js

index 7686e19..a217657 100644 (file)
@@ -85,6 +85,7 @@
            this.slick_options = {
                enableCellNavigation: false,
                enableColumnReorder: true,
            this.slick_options = {
                enableCellNavigation: false,
                enableColumnReorder: true,
+               explicitInitialization: true,           
            };
 
            this.slick_data=[];
            };
 
            this.slick_data=[];
            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);
            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.render();
+           this.slick_grid.init();
            var duration=new Date()-start;
            if (debug) messages.debug("setData+render took " + duration + " ms");
            if (debug_deep) {
            var duration=new Date()-start;
            if (debug) messages.debug("setData+render took " + duration + " ms");
            if (debug_deep) {