mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +00:00
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:
parent
ed9d375e21
commit
62dd2d1aaa
@ -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"/>
|
||||
|
@ -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', '');
|
||||
}
|
||||
},
|
||||
|
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user