Fix 'Document: Done' and clean up some obsolete stuff

This commit is contained in:
law%netscape.com 1999-05-14 22:57:07 +00:00
Родитель 85205cc563
Коммит ce875bde09
2 изменённых файлов: 1 добавлений и 55 удалений

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

@ -10,8 +10,6 @@
appCore.setWebShellWindow(window);
appCore.setToolbarWindow(window);
tryToSetContentWindow();
// appCore.setDisableCallback("DoDisableButtons();");
// appCore.setEnableCallback("DoEnableButtons();");
}
}
@ -28,20 +26,6 @@
}
}
function DoDisableButtons()
{
// Find buttons in the UI and disable them
dump("here");
dump("Browser disabling buttons\n");
document.getElementById('urlbar')
}
function DoEnableButtons()
{
// Find buttons in the UI and enable them
dump("Browser enabling buttons\n");
}
function RefreshUrlbar()
{
//Refresh the urlbar bar
@ -589,16 +573,6 @@
if ( statusText ) {
statusText.setAttribute( "value", text );
}
/*
if ( bindCount == 0 ) {
// This presumably precedes the first onStartBinding, spin
// the progress meter.
var meter = document.getElementById("Browser:LoadingProgress");
if ( meter ) {
meter.setAttribute( "mode", "undetermined" );
}
}
*/
} else {
dump("Can't find status broadcaster!\n");
}
@ -638,32 +612,6 @@
// Turn security on.
securityOn();
}
function onStartBinding() {
bindCount++;
if ( bindCount == 1 ) {
// Something is going on, turn on progress meter.
var meter = document.getElementById("Browser:LoadingProgress");
if ( meter ) {
meter.setAttribute( "mode", "undetermined" );
}
}
}
function onStopBinding() {
bindCount--;
if ( bindCount < 0 ) {
// Something unusual occurred (stop/back?).
bindCount = 0;
}
var stop = document.getElementById("Browser:OnStopBinding");
if ( bindCount == 0 ) {
// Turn off progress meter.
var meter = document.getElementById("Browser:LoadingProgress");
var status = document.getElementById("Browser:Status");
status.setAttribute("value","Document: Done");
meter.setAttribute("value","0");
meter.setAttribute("mode","normal");
}
}
function onProgress() {
var throbber = document.getElementById("Browser:Throbber");
var meter = document.getElementById("Browser:LoadingProgress");
@ -678,7 +626,7 @@
if ( mode == "normal" ) {
var status = document.getElementById("Browser:Status");
if ( status ) {
status.setAttribute("value","Document: Done");
status.setAttribute("text","Document: Done");
}
}
}

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

@ -22,8 +22,6 @@
<broadcaster id="canPrint"/>
<broadcaster id="Browser:LoadingProgress"/>
<broadcaster id="Browser:Status"/>
<broadcaster id="Browser:OnStartBinding"/>
<broadcaster id="Browser:OnStopBinding"/>
<broadcaster id="Browser:Security" secure="false"/>
<broadcaster id="Browser:Throbber" busy="false"/>
<broadcaster id="args" value="http://www.mozilla.org/quality/smoketests/"/>