Skip to content
Snippets Groups Projects
Commit 7bd7fa95 authored by juanf's avatar juanf
Browse files

SSDM-4552 : Extra changes to sample tables loading to make them feel faster

SVN: 37573
parent c9dc5f78
No related branches found
No related tags found
No related merge requests found
......@@ -287,6 +287,7 @@ var SampleDataGridUtil = new function() {
objects : dataList,
totalCount : result.totalCount
});
Util.unblockUI();
}
var fetchOptions = {
......
......@@ -25,7 +25,7 @@ function SampleTableController(parentController, title, experimentIdentifier, pr
var callback = function() {
_this._sampleTableView.repaint($container);
Util.unblockUI();
//Util.unblockUI();
};
if(this._sampleTableModel.experimentIdentifier || projectPermId) {
......
......@@ -11,6 +11,8 @@ $.extend(Grid.prototype, {
this.getDataList = getDataList;
this.showAllColumns = showAllColumns;
this.tableSettings = tableSettings;
this.firstLoad = true;
if(!this.tableSettings) {
this.tableSettings = {
columns : null,
......@@ -566,6 +568,11 @@ $.extend(Grid.prototype, {
list : function(options, callback) {
var thisGrid = this;
if(thisGrid.firstLoad) {
$(thisGrid.panel).hide();
thisGrid.firstLoad = false;
}
thisGrid.getDataList(function(dataListResult) {
dataList = null;
var isDynamic = (dataListResult.totalCount != null && dataListResult.totalCount != undefined);
......@@ -676,7 +683,7 @@ $.extend(Grid.prototype, {
//HACK: Legacy Hacks no longer needed
$(window).trigger('resize'); // HACK: Fixes table rendering issues when refreshing the grid on fuelux 3.1.0 for all browsers
$(thisGrid.panel).hide().show(0); // HACK: Fixes Chrome rendering issues when refreshing the grid on fuelux 3.1.0
$(thisGrid.panel).show(0); // HACK: Fixes Chrome rendering issues when refreshing the grid on fuelux 3.1.0
// HACK: Fix that only works if there is only one table at a time (dont works Safari)
// var newWidth = $(".repeater-list-wrapper > .table").width();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment