rest of fix for 181627 sr=mscott compact folders should display done status

This commit is contained in:
bienvenu%nventure.com 2004-11-23 16:33:12 +00:00
Родитель 53255669fd
Коммит f9c583a53c
1 изменённых файлов: 15 добавлений и 6 удалений

Просмотреть файл

@ -260,6 +260,7 @@ nsMsgStatusFeedback.prototype =
progressMeterContainer : null, progressMeterContainer : null,
pendingStartRequests : 0, pendingStartRequests : 0,
meteorsSpinning : false, meteorsSpinning : false,
myDefaultStatus : null,
progressMeterVisible : false, progressMeterVisible : false,
ensureStatusFields : function() ensureStatusFields : function()
@ -274,13 +275,21 @@ nsMsgStatusFeedback.prototype =
// nsIXULBrowserWindow implementation // nsIXULBrowserWindow implementation
setJSStatus : function(status) setJSStatus : function(status)
{ {
if (status.length > 0)
this.showStatusString(status);
}, },
setJSDefaultStatus : function(status) setJSDefaultStatus : function(status)
{ {
if (status.length > 0)
{
myDefaultStatus = status;
this.statusTextFld.label = status;
}
}, },
setOverLink : function(link) setOverLink : function(link)
{ {
this.showStatusString(link); this.ensureStatusFields();
this.statusTextFld.label = link;
}, },
QueryInterface : function(iid) QueryInterface : function(iid)
{ {
@ -295,8 +304,10 @@ nsMsgStatusFeedback.prototype =
showStatusString : function(statusText) showStatusString : function(statusText)
{ {
this.ensureStatusFields(); this.ensureStatusFields();
if ( statusText == "" ) if ( !statusText.length )
statusText = defaultStatus; statusText = myDefaultStatus;
else
myDefaultStatus = "";
this.statusTextFld.label = statusText; this.statusTextFld.label = statusText;
}, },
_startMeteors : function() _startMeteors : function()
@ -347,9 +358,7 @@ nsMsgStatusFeedback.prototype =
gTimelineService.resetTimer("FolderLoading"); gTimelineService.resetTimer("FolderLoading");
} }
this.ensureStatusFields(); this.ensureStatusFields();
var msg = gMessengerBundle.getString("documentDone"); this.showStatusString(defaultStatus);
this.showStatusString(msg);
defaultStatus = msg;
// stop the throbber // stop the throbber
if (this.throbber) if (this.throbber)