# HG changeset patch # User Serge Gautherie # Date 1325732779 -3600 # Thu Jan 05 04:06:19 2012 +0100 # Node ID 117d216b0fc62e08d5433ddc216d2240b0ad6b27 # Parent 332b3bfdffacd821286e67e48217372e9ec3ffc9 Bug 707039. (Av1) XPFE autocomplete.xml: Rename openResultPopup()/closeResultPopup() to openPopup()/closePopup(). r=neil. DONTBUILD (NPOMCB). diff --git a/suite/components/autocomplete/resources/content/autocomplete.xml b/suite/components/autocomplete/resources/content/autocomplete.xml --- a/suite/components/autocomplete/resources/content/autocomplete.xml +++ b/suite/components/autocomplete/resources/content/autocomplete.xml @@ -299,17 +299,17 @@ @@ -833,17 +833,17 @@ } } this.stopLookup(); if (!this.noMatch) this.autoComplete(); - this.closeResultPopup(); + this.closePopup(); } this.mNeedToComplete = false; this.clearTimer(); if (aFireTextCommand) this._fireEvent("textentered", this.userAction, aTriggeringEvent); ]]> @@ -870,17 +870,17 @@ } if (!this.noMatch) this.autoComplete(); this.mNeedToFinish = false; this.mNeedToComplete = false; - this.closeResultPopup(); + this.closePopup(); this.currentSearchString = ""; if (errItem) this._fireEvent("errorcommand", errItem); this._fireEvent("textentered", "clicking"); ]]> @@ -971,36 +971,36 @@ if (this.resultsPopup.selectedIndex != -1 && this.getSessionStatusAt(this.resultsPopup.selectedIndex) == Components.interfaces.nsIAutoCompleteStatus.failureItems) { errItem = this.getResultAt(this.resultsPopup.selectedIndex); } killEvent = this.mMenuOpen; this.finishAutoComplete(true, true, aEvent); - this.closeResultPopup(); + this.closePopup(); if (errItem) { this._fireEvent("errorcommand", errItem); } break; case KeyEvent.DOM_VK_ESCAPE: this.clearTimer(); killEvent = this.mMenuOpen; this.undoAutoComplete(); - this.closeResultPopup(); + this.closePopup(); break; case KeyEvent.DOM_VK_LEFT: case KeyEvent.DOM_VK_RIGHT: case KeyEvent.DOM_VK_HOME: case KeyEvent.DOM_VK_END: this.finishAutoComplete(true, false, aEvent); this.clearTimer(); - this.closeResultPopup(); + this.closePopup(); break; case KeyEvent.DOM_VK_DOWN: if (!aEvent.altKey) { this.clearTimer(); killEvent = this.keyNavigation(aEvent); break; } @@ -1034,17 +1034,17 @@ ]]> - + = this.minResultsForPopup || this.mFailureItems)) { var w = this.boxObject.width; if (w != this.resultsPopup.boxObject.width) this.resultsPopup.setAttribute("width", w); this.resultsPopup.showPopup(this, -1, -1, "popup", "bottomleft", "topleft"); this.mMenuOpen = true; } ]]> - +