Bug #281717 This is the code half of this (other half is policy). Adding a privacy link under the report wizardpage so users can view privacy any time they want, make clear email isn't required. p=me r=mconnor@steelgryphon.com a=asa

This commit is contained in:
robert%accettura.com 2005-05-03 21:27:01 +00:00
Родитель 7243f7850e
Коммит 11a288b859
5 изменённых файлов: 34 добавлений и 4 удалений

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

@ -31,7 +31,12 @@
<!ENTITY reportForm.gecko.title "Gecko:">
<!ENTITY reportForm.useragent.title "Useragent:">
<!ENTITY reportForm.language.title "Language:">
<!ENTITY reportForm.email.title "Email:">
<!-- Make sure this has "(Optional)" at the end. This is important for the user to know -->
<!ENTITY reportForm.email.title "Email (Optional):">
<!ENTITY reportForm.privacyPolicy.title "Privacy Policy">
<!ENTITY reportForm.privacyPolicy.tooltip "View Privacy Policy">
<!ENTITY reportResults.showDetail.title "Show Details">

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

@ -1,3 +1,4 @@
pref("extensions.reporter.privacyURL", "http://reporter-test.mozilla.org/privacy/?plain");
// Make sure there are trailing slashes!
pref("extensions.reporter.privacyURL", "http://reporter-test.mozilla.org/privacy/");
pref("extensions.reporter.serviceURL", "http://reporter-test.mozilla.org/service/");

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

@ -85,6 +85,10 @@ function getCharPref(prefname, aDefault) {
}
}
function openPrivacyPolicy() {
var url = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/");
openDialog("chrome://browser/content/browser.xul", "_blank", "chrome,all,dialog=no", url, null, null);
}
function initPrivacyNotice() {
var reportWizard = document.getElementById('reportWizard');
@ -97,8 +101,8 @@ function initPrivacyNotice() {
document.getElementById("dontShowPrivacyStatement").setAttribute("checked", "true");
// Load Privacy Policy
var privacyURL = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/?plain");
document.getElementById("privacyStatement").setAttribute("src", privacyURL);
var privacyURL = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/");
document.getElementById("privacyStatement").setAttribute("src", privacyURL+"?plain");
}
}

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

@ -107,6 +107,14 @@
<label control="email" value="&reportForm.email.title;"/>
<textbox id="email" size="60" class="noborder"/>
</row>
<row>
<spacer/>
<label id="privacyPolicy"
onclick="openPrivacyPolicy();"
onkeypress="if (event.keyCode == event.DOM_VK_ENTER || event.keyCode == event.DOM_VK_RETURN) openPrivacyPolicy();"
value="&reportForm.privacyPolicy.title;"
tooltiptext="&reportForm.privacyPolicy.tooltip;"/>
</row>
</rows>
</grid>
</wizardpage>

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

@ -50,3 +50,15 @@
.hide {
display: none;
}
#privacyPolicy {
color: #0000FF;
text-decoration: underline !important;
cursor: pointer;
text-align: right;
-moz-user-focus: normal;
}
#privacyPolicy:focus {
outline: 1px dotted invert ! important;
}