зеркало из https://github.com/mozilla/pjs.git
adding a help button to page info, bug=140466, r=racham, sr=alecf
This commit is contained in:
Родитель
f0ab843625
Коммит
824f2783fd
|
@ -150,6 +150,35 @@ function onLoadPageInfo()
|
|||
}
|
||||
}
|
||||
|
||||
function doHelpButton() {
|
||||
var tabControl = document.getElementById("tabbox");
|
||||
switch (tabControl.selectedTab.id) {
|
||||
case "generalTab":
|
||||
helpdoc = "pageinfo_general";
|
||||
break;
|
||||
case "formsTab":
|
||||
helpdoc = "pageinfo_forms";
|
||||
break;
|
||||
case "linksTab":
|
||||
helpdoc = "pageinfo_links";
|
||||
break;
|
||||
case "mediaTab":
|
||||
helpdoc = "pageinfo_media";
|
||||
break;
|
||||
case "securityTab":
|
||||
helpdoc = "pageinfo_security";
|
||||
break;
|
||||
case "p3pTab":
|
||||
helpdoc = "pageinfo_privacy";
|
||||
break;
|
||||
default:
|
||||
helpdoc = "pageinfo_general";
|
||||
break;
|
||||
}
|
||||
openHelp(helpdoc);
|
||||
}
|
||||
|
||||
|
||||
function makeGeneralTab()
|
||||
{
|
||||
var theBundle = document.getElementById("pageinfobundle");
|
||||
|
|
|
@ -42,12 +42,13 @@
|
|||
windowtype="Browser:page-info"
|
||||
onload="onLoadPageInfo()"
|
||||
align="stretch" class="dialog"
|
||||
width="425" height="450"
|
||||
width="&pageInfoWindow.width;" height="&pageInfoWindow.height;"
|
||||
screenX="10" screenY="10"
|
||||
persist="screenX screenY width height sizemode">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://navigator/content/pageInfo.js"/>
|
||||
<script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
|
||||
|
||||
<keyset>
|
||||
<key id="closeWindow" key="&closeWindow;" modifiers="accel" oncommand="window.close();"/>
|
||||
|
@ -319,4 +320,8 @@
|
|||
<!-- Others added by overlay -->
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
<box>
|
||||
<spacer flex="1"/>
|
||||
<button label="&helpButton;" oncommand="doHelpButton();" />
|
||||
</box>
|
||||
</window>
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
|
||||
<!ENTITY title "Page Info">
|
||||
<!ENTITY description "Information about the current page">
|
||||
<!ENTITY helpButton "Help">
|
||||
<!ENTITY pageInfoWindow.width "425">
|
||||
<!ENTITY pageInfoWindow.height "470">
|
||||
|
||||
<!ENTITY unknown "Unknown">
|
||||
<!ENTITY closeWindow "w">
|
||||
|
|
Загрузка…
Ссылка в новой задаче