зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c170f27358
Коммит
1f2d60315a
|
@ -594,7 +594,6 @@ var gFindBar = {
|
||||||
}
|
}
|
||||||
|
|
||||||
findToolbar.hidden = true;
|
findToolbar.hidden = true;
|
||||||
this.setFindMode(FIND_NORMAL);
|
|
||||||
this.setFoundLink(null);
|
this.setFoundLink(null);
|
||||||
this.mCurrentWindow = null;
|
this.mCurrentWindow = null;
|
||||||
this.changeSelectionColor(false);
|
this.changeSelectionColor(false);
|
||||||
|
@ -791,6 +790,8 @@ var gFindBar = {
|
||||||
*/
|
*/
|
||||||
updateFindUI: function (showMinimalUI)
|
updateFindUI: function (showMinimalUI)
|
||||||
{
|
{
|
||||||
|
this.mUsingMinimalUI = showMinimalUI;
|
||||||
|
|
||||||
var findBar = document.getElementById("FindToolbar");
|
var findBar = document.getElementById("FindToolbar");
|
||||||
for (var i = 0; i < findBar.childNodes.length; i++) {
|
for (var i = 0; i < findBar.childNodes.length; i++) {
|
||||||
var node = findBar.childNodes[i];
|
var node = findBar.childNodes[i];
|
||||||
|
@ -888,7 +889,7 @@ var gFindBar = {
|
||||||
var res = this.findNext();
|
var res = this.findNext();
|
||||||
if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {
|
if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {
|
||||||
try {
|
try {
|
||||||
var opened = this.openFindBar();
|
var opened = this.openFindBar(this.mUsingMinimalUI);
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
}
|
}
|
||||||
|
@ -914,7 +915,7 @@ var gFindBar = {
|
||||||
var res = this.findPrevious();
|
var res = this.findPrevious();
|
||||||
if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {
|
if (res == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND) {
|
||||||
try {
|
try {
|
||||||
var opened = this.openFindBar();
|
var opened = this.openFindBar(this.mUsingMinimalUI);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче