Bug 410391 - "Clicking on the status-bar security button does not focus on the security tab in the pageinfo window" [p=philip.chee@gmail.com (Philip Chee) r=db48x sr=Neil]

This commit is contained in:
reed%reedloden.com 2008-01-16 01:11:37 +00:00
Родитель 66cab1caf6
Коммит 8998c74edf
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -331,15 +331,14 @@ function onLoadPageInfo()
onLoadRegistry.map(function(func) { func(); });
/* Select the requested tab, if the name is specified */
var initialTab = "general";
var initialTab = "generalTab";
if ("arguments" in window && window.arguments.length >= 1 &&
window.arguments[0] && window.arguments[0].initialTab)
initialTab = window.arguments[0].initialTab;
var tabbox = document.getElementById("tabbox");
initialTab = document.getElementById(initialTab + "Tab") || document.getElementById("generalTab");
tabbox.selectedItem = initialTab;
tabbox.selectedItem.doCommand();
tabbox.focus();
initialTab = document.getElementById(initialTab) || document.getElementById("generalTab");
tabbox.selectedTab = initialTab;
tabbox.selectedTab.focus();
}
function onUnloadPageInfo()