mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
adding help buttons to form manager, r=morse, sr=alecf, a=asa/drivers, bug=131254
This commit is contained in:
parent
2892c41707
commit
6658283f1f
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -442,3 +442,7 @@ nsWalletViewer.prototype =
|
||||
return true;
|
||||
}
|
||||
|
||||
// called by the help button overlaid from platformDialogOverlay
|
||||
function doHelpButton() {
|
||||
openHelp("forms_data");
|
||||
}
|
||||
|
@ -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[
|
||||
|
@ -442,3 +442,7 @@ nsWalletViewer.prototype =
|
||||
return true;
|
||||
}
|
||||
|
||||
// called by the help button overlaid from platformDialogOverlay
|
||||
function doHelpButton() {
|
||||
openHelp("forms_data");
|
||||
}
|
||||
|
@ -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[
|
||||
|
@ -535,3 +535,10 @@ function TrimString(string)
|
||||
return string.replace(/(^\s+)|(\s+$)/g, '')
|
||||
}
|
||||
|
||||
function doHelpButton() {
|
||||
if (isPasswordManager) {
|
||||
openHelp("password_mgr");
|
||||
} else {
|
||||
openHelp("forms_sites");
|
||||
}
|
||||
}
|
||||
|
@ -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"/>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user