Changeset 609
- Timestamp:
- 01/19/08 00:46:13 (10 months ago)
- Files:
-
- trunk/src/chrome/chromeFiles/content/browser.js (modified) (1 diff)
- trunk/src/chrome/chromeFiles/content/scriptdownloader.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/chrome/chromeFiles/content/browser.js
r606 r609 576 576 }; 577 577 578 GM_BrowserUI.hideStatusImmediately = function() { 579 if (this.showAnimation) { 580 this.showAnimation.stop(); 581 this.showAnimation = null; 582 } 583 584 if (this.hideAnimation) { 585 this.hideAnimation.stop(); 586 this.hideAnimation = null; 587 } 588 589 if (this.autoHideTimer) { 590 window.clearTimeout(this.autoHideTimer); 591 this.autoHideTimer = null; 592 } 593 594 this.statusLabel.style.width = "0"; 595 this.statusLabel.collapsed = true; 596 }; 597 578 598 GM_BrowserUI.hideStatus = function() { 579 599 if (!this.hideAnimation) { trunk/src/chrome/chromeFiles/content/scriptdownloader.js
r548 r609 38 38 39 39 ScriptDownloader.prototype.handleScriptDownloadComplete = function() { 40 this.win_.GM_BrowserUI.refreshStatus(); 41 this.win_.GM_BrowserUI.hideStatusImmediately(); 42 40 43 try { 41 44 // If loading from file, status might be zero on success 42 45 if (this.req_.status != 200 && this.req_.status != 0) { 43 this.win_.GM_BrowserUI.refreshStatus();44 this.win_.GM_BrowserUI.hideStatus();45 46 46 // NOTE: Unlocalized string 47 47 alert('Error loading user script:\n' + … … 84 84 // NOTE: unlocalized string 85 85 alert("Script could not be installed " + e); 86 this.win_.GM_BrowserUI.refreshStatus();87 this.win_.GM_BrowserUI.hideStatus();88 86 throw e; 89 87 } … … 219 217 return; 220 218 } 221 this.win_.GM_BrowserUI.hideStatus();222 this.win_.GM_BrowserUI.refreshStatus();223 219 this.win_.openDialog("chrome://greasemonkey/content/install.xul", "", 224 220 "chrome,centerscreen,modal,dialog,titlebar,resizable", … … 227 223 228 224 ScriptDownloader.prototype.showScriptView = function() { 229 this.win_.GM_BrowserUI.hideStatus();230 this.win_.GM_BrowserUI.refreshStatus();231 225 this.win_.GM_BrowserUI.showScriptView(this); 232 226 };
