Bug 340743 - In FAYT mode after failed search, hitting F3 (Find Again) switches find bar UI to non-minimal UI. r=mconnor

This commit is contained in:
jwalden%mit.edu 2006-06-15 18:00:10 +00:00
Родитель c170f27358
Коммит 1f2d60315a
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -594,7 +594,6 @@ var gFindBar = {
}
findToolbar.hidden = true;
this.setFindMode(FIND_NORMAL);
this.setFoundLink(null);
this.mCurrentWindow = null;
this.changeSelectionColor(false);
@ -791,6 +790,8 @@ var gFindBar = {
*/
updateFindUI: function (showMinimalUI)
{
this.mUsingMinimalUI = showMinimalUI;
var findBar = document.getElementById("FindToolbar");
for (var i = 0; i < findBar.childNodes.length; i++) {
var node = findBar.childNodes[i];
@ -888,7 +889,7 @@ var gFindBar = {
var res = this.findNext();
if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {
try {
var opened = this.openFindBar();
var opened = this.openFindBar(this.mUsingMinimalUI);
}
catch(e) {
}
@ -914,7 +915,7 @@ var gFindBar = {
var res = this.findPrevious();
if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {
try {
var opened = this.openFindBar();
var opened = this.openFindBar(this.mUsingMinimalUI);
}
catch (e) {
}