bug 48742, adding privacy tutorial, r=dveditz

This commit is contained in:
morse%netscape.com 2000-08-17 19:32:58 +00:00
Родитель 3306a3ed2b
Коммит 92b810bc5e
5 изменённых файлов: 22 добавлений и 0 удалений

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

@ -383,6 +383,10 @@ function WalletDialog( which )
case "walletsites":
window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no","W");
break;
case "tutorial":
server = this.pref.getLocalizedUnicharPref("wallet.Samples");
window._content.location.href = server + 'privacy.html';
break;
case "wallet":
default:
window.openDialog("chrome://communicator/content/wallet/WalletEditor.xul","walletEditor","modal=yes,chrome,resizable=no");

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

@ -109,6 +109,8 @@
oncommand="WalletAction('imageBlock');"/>
</menupopup>
</menu>
<menuseparator/>
<menuitem value="&walletTutorialCmd.label;" accesskey="&walletTutorialCmd.accesskey;" oncommand="WalletDialog('tutorial');"/>
</menupopup>
</menu>
<menuseparator/>

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

@ -65,6 +65,8 @@
<!ENTITY walletInterviewCmd.accesskey "i">
<!ENTITY walletSamplesCmd.label "Demonstration">
<!ENTITY walletSamplesCmd.accesskey "d">
<!ENTITY walletTutorialCmd.label "Understanding Privacy">
<!ENTITY walletTutorialCmd.accesskey "u">
<!ENTITY walletChangePasswordCmd.label "Change Master Password...">
<!ENTITY walletChangePasswordCmd.accesskey "c">
<!ENTITY walletExpirePasswordCmd.label "Log Out">

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

@ -45,6 +45,16 @@
window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","","modal=yes,chrome,resizable=no", 0);
}
function viewTutorial()
{
pref = Components.classes['component://netscape/preferences'];
pref = pref.getService();
pref = pref.QueryInterface(Components.interfaces.nsIPref);
server = pref.getLocalizedUnicharPref("wallet.Samples");
window.openDialog
(server+"privacy.html","","modal=yes,chrome,resizable=yes,height=400,width=600", 0);
}
]]>
</script>
@ -68,6 +78,7 @@
prefattribute="checked"/>
<box autostretch="never" halign="right">
<button class="dialog" value="&viewCookies.label;" accesskey="&viewCookies.accesskey;" oncommand="viewCookies();"/>
<button class="dialog" value="&viewTutorial.label;" accesskey="&viewTutorial.accesskey;" oncommand="viewTutorial();"/>
</box>
</titledbox>

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

@ -22,4 +22,7 @@
<!ENTITY viewCookies.label "View Stored Cookies">
<!ENTITY viewCookies.accesskey "v">
<!ENTITY viewTutorial.label "Understanding Privacy">
<!ENTITY viewTutorial.accesskey "u">