From 8d1267ba0c4277cd4336badeb90d428479b54491 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Thu, 11 Sep 2003 15:45:52 +0000 Subject: [PATCH] missed some parts of Bug 78605 before... still r=bz sr=jag git-svn-id: svn://10.0.0.236/trunk@146769 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/ui/progressDlg/nsProgressDialog.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js b/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js index a9b11abdfd3..3cb46f007bc 100644 --- a/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js +++ b/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js @@ -617,10 +617,15 @@ nsProgressDialog.prototype = { // If the "keep dialog open" box is checked, then update dialog. if ( this.dialog && this.dialogElement( "keep" ).checked ) { // Indicate completion in status area. - this.setValue( "status", this.replaceInsert( this.getString( "completeMsg" ), - 1, - this.formatSeconds( this.elapsed/1000 ) ) ); + var string = this.getString( "completeMsg" ); + string = this.replaceInsert( string, + 1, + this.formatSeconds( this.elapsed/1000 ) ); + string = this.replaceInsert( string, + 2, + this.target.fileSize >> 10 ); + this.setValue( "status", string); // Put progress meter at 100%. this.percent = 100;