adding a help button to page info, bug=140466, r=racham, sr=alecf

This commit is contained in:
oeschger%netscape.com 2002-05-16 05:40:57 +00:00
Родитель f0ab843625
Коммит 824f2783fd
3 изменённых файлов: 38 добавлений и 1 удалений

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

@ -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">