Process widget was causing the UI to get rendered twice at start-up.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@75 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-02-09 00:26:57 +00:00
parent b7cf18b86a
commit 402858a784

View File

@ -1,6 +1,7 @@
function ProcessWidget(div) { function ProcessWidget(div) {
this._div = div; this._div = div;
this._timerID = null; this._timerID = null;
this._processCount = 0;
this.update(); this.update();
} }
@ -27,11 +28,16 @@ ProcessWidget.prototype._render = function() {
var bodyDiv = $('<div></div>').addClass("process-panel-inner").appendTo(this._div); var bodyDiv = $('<div></div>').addClass("process-panel-inner").appendTo(this._div);
if (this._data.processes.length == 0) { if (this._data.processes.length == 0) {
this._div.hide(); this._div.hide();
ui.historyWidget.update(); if (this._processCount > 0) {
ui.dataTableView.update(true); this._processCount = 0;
ui.historyWidget.update();
ui.dataTableView.update(true);
}
return; return;
} }
this._processCount = this._data.processes.length;
this._div.show(); this._div.show();