add help buttons to composer dialogs (bug #6685)

This commit is contained in:
brade%netscape.com 2001-06-28 13:48:52 +00:00
parent 40ee14cda1
commit 39966986a8
10 changed files with 39 additions and 5 deletions

View File

@ -315,3 +315,8 @@ function AddTreeItem ( name, value, treeChildrenId, attArray )
return treeitem;
}
function doHelpButton()
{
openHelp("chrome://help/content/help.xul?advanced_property_editor");
}

View File

@ -55,6 +55,7 @@
<script type="application/x-javascript" src="chrome://editor/content/EdAdvancedEdit.js"/>
<script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
<script type="application/x-javascript" src="chrome://global/content/strres.js" />
<script type="application/x-javascript" src="chrome://help/content/help.js"/>
<broadcaster id="args" value=""/>
@ -217,6 +218,6 @@
</tabpanels>
</tabbox>
<spring class="spacer"/>
<box id="okCancelButtonsRight"/>
<box id="okCancelHelpButtonsRight"/>
</window>

View File

@ -40,6 +40,11 @@ function Startup(){
initDialog();
}
function doHelpButton()
{
openHelp("chrome://help/content/help.xul?imagemap_properties");
}
function initDialog(){
//Get image element from parent
imageElement = window.arguments[0];

View File

@ -44,6 +44,7 @@
<!-- Methods common to all editor dialogs -->
<script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js" />
<script language="JavaScript" src="chrome://global/content/dialogOverlay.js" />
<script type="application/x-javascript" src="chrome://help/content/help.js"/>
<!-- Methods for Image Map only -->
<script type="application/x-javascript" src="chrome://editor/content/EdImageMap.js" />
@ -168,6 +169,6 @@
<separator class="groove"/>
<!-- from global dialogOverlay -->
<box id="okCancelButtons"/>
<box id="okCancelHelpButtonsRight"/>
</window>

View File

@ -601,6 +601,11 @@ function ValidateData()
return true;
}
function doHelpButton()
{
openHelp("chrome://help/content/help.xul?image_properties");
}
function onOK()
{
// handle insertion of new image

View File

@ -47,6 +47,7 @@
<script type="application/x-javascript" src="chrome://editor/content/EdImageProps.js"/>
<script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js"/>
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
<script type="application/x-javascript" src="chrome://help/content/help.js"/>
<spring id="location" offsetY="50" persist="offsetX offsetY"/>
<broadcaster id="args" value=""/>
@ -301,5 +302,5 @@
</box> <!-- END OF MORE/FEWER SECTION -->
<separator class="groove"/>
<!-- from global dialogOverlay -->
<box id="okCancelButtons"/>
<box id="okCancelHelpButtonsRight"/>
</window>

View File

@ -454,6 +454,10 @@ function ValidateData()
return true;
}
function doHelpButton()
{
openHelp("chrome://help/content/help.xul?link_properties");
}
function onOK()
{

View File

@ -40,6 +40,7 @@
<script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
<script type="application/x-javascript" src="chrome://editor/content/EdLinkProps.js"/>
<script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
<script type="application/x-javascript" src="chrome://help/content/help.js"/>
<broadcaster id="args" value=""/>
<spring id="location" offsetY="50" persist="offsetX offsetY"/>
@ -80,5 +81,5 @@
<!-- from EdDialogOverlay -->
<box id="AdvancedEdit"/>
<!-- from global dialogOverlay -->
<box id="okCancelButtons"/>
<box id="okCancelHelpButtonsRight"/>
</window>

View File

@ -1242,6 +1242,11 @@ function Apply()
return false;
}
function doHelpButton()
{
openHelp("chrome://help/content/help.xul?table_properties");
}
function onOK()
{
// Do same as Apply and close window if ValidateData succeeded

View File

@ -91,7 +91,13 @@ var key = {
"?im_prefs_privacy": "chrome://help/locale/im_help.html#im_privacy",
"?im_prefs_notification": "chrome://help/locale/im_help.html#im_notif",
"?im_prefs_away": "chrome://help/locale/im_help.html#im_awaypref",
"?im_prefs_connection": "chrome://help/locale/im_help.html#im_connect"
"?im_prefs_connection": "chrome://help/locale/im_help.html#im_connect",
"?image_properties": "chrome://help/locale/composer_help.html#PROPERTIES_IMAGE",
"?imagemap_properties": "chrome://help/locale/composer_help.html#IMAGE_MAPS",
"?link_properties": "chrome://help/locale/composer_help.html#page_link",
"?table_properties": "chrome://help/locale/composer_help.html#Setting_table_properties",
"?advanced_property_editor": "chrome://help/locale/composer_help.html#PROPERTY_EDITOR"
}
// This function is called by dialogs that want to display context-sensitive help