From 18f6a20df4b7a59b3d8c9b624bb970b8754a0807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Sun, 26 Jun 2011 15:06:39 +0000 Subject: [PATCH] Included accidently commented out setTimeout commands again --- phpgwapi/js/egw_action/egw_grid_view.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/phpgwapi/js/egw_action/egw_grid_view.js b/phpgwapi/js/egw_action/egw_grid_view.js index 60d0b32927..61423d1e8c 100644 --- a/phpgwapi/js/egw_action/egw_grid_view.js +++ b/phpgwapi/js/egw_action/egw_grid_view.js @@ -887,7 +887,7 @@ function egwGridViewGrid_beginUpdate() function egwGridViewGrid_triggerUpdateAssumedHeights() { -/* this.triggerID++; + this.triggerID++; var self = this; var id = this.triggerID; window.setTimeout(function() { @@ -898,7 +898,7 @@ function egwGridViewGrid_triggerUpdateAssumedHeights() } }, EGW_GRID_UPDATE_HEIGHTS_TIMEOUT - );*/ + ); } function egwGridViewGrid_endUpdate(_recPrev) @@ -1005,9 +1005,9 @@ function egwGridViewGrid_setupContainer() this.scrollarea.scroll(this, function(e) { e.data.scrollEvents++; var cnt = e.data.scrollEvents; -/* window.setTimeout(function() { + window.setTimeout(function() { e.data.scrollCallback(cnt); - }, EGW_GRID_SCROLL_TIMEOUT);*/ + }, EGW_GRID_SCROLL_TIMEOUT); }); } @@ -1129,9 +1129,9 @@ function egwGridViewGrid_updateAssumedHeights(_maxCount) // Otherwise, all elements have been checked - we'll now call "setViewArea" // which may check whether new objects are now in the currently visible range var self = this; -/* window.setTimeout(function() { + window.setTimeout(function() { self.setViewArea(self.viewArea); - }, EGW_GRID_UPDATE_HEIGHTS_TIMEOUT);*/ + }, EGW_GRID_UPDATE_HEIGHTS_TIMEOUT); } } @@ -1707,10 +1707,10 @@ function egwGridViewRow_doUpdateData(_immediate) icon.load({"item": this, "cntr": iconContainer}, function(e) { e.data.cntr.css("min-height", ""); var icon = $(this); -/* window.setTimeout(function() { + window.setTimeout(function() { e.data.item.grid.setIconWidth(icon.width()); e.data.item.grid.addIconHeightToAvg(icon.height()); - }, 100);*/ + }, 100); e.data.item.callHeightChangeProc(); });