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:
parent
73a306db0b
commit
1ef67f1946
@ -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;
|
||||
}
|
||||
|
||||
@ -105,8 +105,8 @@
|
||||
<menuitem label="©.label;" command="cmd_copy" accesskey="©.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;"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user