Bug 409800 - Make the new pageInfo window more friendly to extensions, p=philip.chee@gmail.com r=db48x sr=Neil

git-svn-id: svn://10.0.0.236/trunk@242217 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kairo%kairo.at 2007-12-31 17:31:02 +00:00
parent 73a306db0b
commit 1ef67f1946
2 changed files with 7 additions and 7 deletions

View File

@ -335,11 +335,11 @@ function onLoadPageInfo()
if ("arguments" in window && window.arguments.length >= 1 &&
window.arguments[0] && window.arguments[0].initialTab)
initialTab = window.arguments[0].initialTab;
var radioGroup = document.getElementById("viewGroup");
var tabbox = document.getElementById("tabbox");
initialTab = document.getElementById(initialTab + "Tab") || document.getElementById("generalTab");
radioGroup.selectedItem = initialTab;
radioGroup.selectedItem.doCommand();
radioGroup.focus();
tabbox.selectedItem = initialTab;
tabbox.selectedItem.doCommand();
tabbox.focus();
}
function onUnloadPageInfo()
@ -354,7 +354,7 @@ function onUnloadPageInfo()
function onClickMore()
{
var tabbox = document.getElementById("viewGroup");
var tabbox = document.getElementById("tabbox");
var tab = document.getElementById("securityTab");
tabbox.selectedTab = tab;
}

View File

@ -105,8 +105,8 @@
<menuitem label="&copy.label;" command="cmd_copy" accesskey="&copy.accesskey;"/>
</menupopup>
<tabbox id="viewGroup" flex="1">
<tabs onselect="[gImageView, gFormView, gLinkView].forEach(ensureSelection);">
<tabbox id="tabbox" flex="1">
<tabs id="tabs" onselect="[gImageView, gFormView, gLinkView].forEach(ensureSelection);">
<tab id="generalTab" label="&generalTab;" accesskey="&generalTab.accesskey;"/>
<tab id="mediaTab" label="&mediaTab;" accesskey="&mediaTab.accesskey;"/>
<tab id="feedTab" label="&feedTab;" accesskey="&feedTab.accesskey;"/>