adding help buttons to form manager, r=morse, sr=alecf, a=asa/drivers, bug=131254

This commit is contained in:
oeschger%netscape.com 2002-03-20 01:24:03 +00:00
parent 2892c41707
commit 6658283f1f
9 changed files with 38 additions and 12 deletions

View File

@ -452,8 +452,11 @@ function getSelectedTab()
return key;
}
function doHelpButton() {
var uri = getSelectedTab();
openHelp(uri);
if (isImages) {
openHelp("image_mgr");
} else {
var uri = getSelectedTab();
openHelp(uri);
}
}

View File

@ -442,3 +442,7 @@ nsWalletViewer.prototype =
return true;
}
// called by the help button overlaid from platformDialogOverlay
function doHelpButton() {
openHelp("forms_data");
}

View File

@ -36,14 +36,12 @@
// centerWindowOnScreen();
}
]]>
</script>
<script type="application/x-javascript" src="chrome://communicator/content/wallet/WalletViewer.js"/>
<script type="application/x-javascript" src="chrome://global/content/strres.js" />
<script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
<keyset id="dialogKeys"/>
<hbox flex="1">
@ -57,7 +55,7 @@
<separator/>
<hbox id="okCancelButtonsRight" />
<hbox id="okCancelHelpButtonsRight" />
<script type="application/x-javascript">
<![CDATA[

View File

@ -442,3 +442,7 @@ nsWalletViewer.prototype =
return true;
}
// called by the help button overlaid from platformDialogOverlay
function doHelpButton() {
openHelp("forms_data");
}

View File

@ -36,14 +36,12 @@
// centerWindowOnScreen();
}
]]>
</script>
<script type="application/x-javascript" src="chrome://communicator/content/wallet/WalletViewer.js"/>
<script type="application/x-javascript" src="chrome://global/content/strres.js" />
<script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
<keyset id="dialogKeys"/>
<hbox flex="1">
@ -57,7 +55,7 @@
<separator/>
<hbox id="okCancelButtonsRight" />
<hbox id="okCancelHelpButtonsRight" />
<script type="application/x-javascript">
<![CDATA[

View File

@ -535,3 +535,10 @@ function TrimString(string)
return string.replace(/(^\s+)|(\s+$)/g, '')
}
function doHelpButton() {
if (isPasswordManager) {
openHelp("password_mgr");
} else {
openHelp("forms_sites");
}
}

View File

@ -34,12 +34,15 @@
alttitle="&windowalttitle.label;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
style="width: 30em!important;"
buttons="accept,cancel,help"
onload="Startup()"
ondialogaccept="return onAccept();">
ondialogaccept="return onAccept();"
ondialoghelp="return doHelpButton();">
<script src="chrome://communicator/content/wallet/SignonViewer.js"/>
<script src="chrome://global/content/strres.js"/>
<script src="chrome://communicator/content/wallet/nsWalletTreeUtils.js"/>
<script src="chrome://help/content/contextHelp.js"/>
<stringbundle id="signonBundle"
src="chrome://communicator/locale/wallet/SignonViewer.properties"/>

View File

@ -1,3 +1,4 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
@ -164,3 +165,8 @@ function Cancel() {
walletpreview.SetValue(result, window);
return true;
}
function doHelpButton() {
openHelp("forms_prefill");
return true;
}

View File

@ -31,11 +31,13 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
ondialogaccept="return Save();"
ondialogcancel="return Cancel();"
ondialoghelp="return doHelpButton();"
orient="vertical" class="dialog" onload="Startup()">
<script type="application/x-javascript" src="chrome://global/content/strres.js" />
<script type="application/x-javascript" src="chrome://communicator/content/wallet/WalletPreview.js"/>
<script type="application/x-javascript" src="chrome://wallet/content/walletOverlay.js"/>
<script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
<keyset id="dialogKeys"/>
@ -62,5 +64,6 @@
<spacer flex="1"/>
<button dlgtype="accept" class="dialog-button"/>
<button dlgtype="cancel" class="dialog-button"/>
<button dlgtype="help" class="dialog-button"/>
</hbox>
</dialog>