Bug 607922 - Once the awesome panel is opened, the Search button should open the open search menu [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-11-03 14:45:19 +01:00
Родитель 490bc093e6
Коммит a0a99c4e30
1 изменённых файлов: 9 добавлений и 3 удалений

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

@ -837,7 +837,10 @@ var BrowserUI = {
this.doCommand("cmd_menu");
break;
case "Search":
AllPagesList.doCommand();
if (!this.activePanel)
AllPagesList.doCommand();
else
this.doCommand("cmd_opensearch");
break;
default:
break;
@ -878,12 +881,15 @@ var BrowserUI = {
button.setAttribute("disabled", "true");
break;
case "NavigationPanelHidden":
case "NavigationPanelHidden": {
this._edit.collapsed = true;
this._title.collapsed = false;
document.getElementById("urlbar-icons").removeAttribute("disabled");
let button = document.getElementById("urlbar-icons");
button.removeAttribute("open");
button.removeAttribute("disabled");
break;
}
}
},