Bug 47909: status bar should only have progress meter while loading; patch by Matthias Bockelkamp <mbockelkamp@web.de>, r=me, sr=bienvenu, a=asa

This commit is contained in:
mnyromyr%tprac.de 2005-07-29 20:01:00 +00:00
parent ed9d375e21
commit 62dd2d1aaa
3 changed files with 4 additions and 2 deletions

View File

@ -218,7 +218,7 @@
<statusbar class="chromeclass-status" id="status-bar">
<statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
<statusbarpanel class="statusbarpanel-progress">
<statusbarpanel class="statusbarpanel-progress" id="progress-panel" hidden="true">
<progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
</statusbarpanel>
<statusbarpanel id="statusText" crop="right" flex="1"/>

View File

@ -321,6 +321,7 @@ var progressListener = {
if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)
{
document.getElementById('compose-progressmeter').setAttribute( "mode", "undetermined" );
document.getElementById('progress-panel').hidden = false;
}
if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)
@ -328,6 +329,7 @@ var progressListener = {
gSendOrSaveOperationInProgress = false;
document.getElementById('compose-progressmeter').setAttribute( "mode", "normal" );
document.getElementById('compose-progressmeter').setAttribute( "value", 0 );
document.getElementById('progress-panel').hidden = true;
document.getElementById('statusText').setAttribute('label', '');
}
},

View File

@ -558,7 +558,7 @@
<statusbar id="status-bar" class="chromeclass-status">
<statusbarpanel id="component-bar"/>
<statusbarpanel id="statusText" flex="1"/>
<statusbarpanel class="statusbarpanel-progress">
<statusbarpanel class="statusbarpanel-progress" id="progress-panel" hidden="true">
<progressmeter id="compose-progressmeter" class="progressmeter-statusbar" mode="normal" value="0"/>
</statusbarpanel>
<statusbarpanel checkfunc="MailCheckBeforeOfflineChange()" id="offline-status" class="statusbarpanel-iconic"/>