From 1a87d672cfd1d8bbc012122c2caea72478bdcbfe Mon Sep 17 00:00:00 2001 From: David Huynh Date: Fri, 14 May 2010 19:27:01 +0000 Subject: [PATCH] Browsing engine didn't initialize properly from permalink: it triggered an update when other parts of the UI hadn't been constructed. git-svn-id: http://google-refine.googlecode.com/svn/trunk@770 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/webapp/scripts/project.js | 4 ++++ src/main/webapp/scripts/project/browsing-engine.js | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/scripts/project.js b/src/main/webapp/scripts/project.js index 4acd8feda..15ec85bd5 100644 --- a/src/main/webapp/scripts/project.js +++ b/src/main/webapp/scripts/project.js @@ -118,6 +118,10 @@ function initializeUI(uiState) { }); $(window).bind("resize", resizeAll); + + if (uiState.facets) { + Gridworks.update({ engineChanged: true }); + } } Gridworks.setTitle = function(status) { diff --git a/src/main/webapp/scripts/project/browsing-engine.js b/src/main/webapp/scripts/project/browsing-engine.js index 165a10586..755196f15 100644 --- a/src/main/webapp/scripts/project/browsing-engine.js +++ b/src/main/webapp/scripts/project/browsing-engine.js @@ -27,8 +27,6 @@ function BrowsingEngine(div, facetConfigs) { this._facets.push({ elmt: elmt, facet: facet }); } - - Gridworks.update({ engineChanged: true }); } }