зеркало из https://github.com/mozilla/pjs.git
Bug 345599: fix jwalden's whitespace nits and sync from branch.
This commit is contained in:
Родитель
1e2a53c94b
Коммит
2b188b9c77
|
@ -43,7 +43,7 @@ var gPrivacyPane = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the UI for the number of days of history to keep, and updates the
|
* Sets up the UI for the number of days of history to keep, and updates the
|
||||||
label of the "Clear Now..." button.
|
* label of the "Clear Now..." button.
|
||||||
*/
|
*/
|
||||||
init: function ()
|
init: function ()
|
||||||
{
|
{
|
||||||
|
@ -131,8 +131,6 @@ var gPrivacyPane = {
|
||||||
pref.value = isNaN(uiValue) ? 0 : uiValue;
|
pref.value = isNaN(uiValue) ? 0 : uiValue;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the value of the browser.download.manager.retention preference
|
* Converts the value of the browser.download.manager.retention preference
|
||||||
* into a Boolean value. "remove on close" and "don't remember" both map
|
* into a Boolean value. "remove on close" and "don't remember" both map
|
||||||
|
@ -245,19 +243,19 @@ var gPrivacyPane = {
|
||||||
/**
|
/**
|
||||||
* Sets the label of the "Clear Now..." button according to the
|
* Sets the label of the "Clear Now..." button according to the
|
||||||
* privacy.sanitize.promptOnSanitize pref.
|
* privacy.sanitize.promptOnSanitize pref.
|
||||||
*/
|
*/
|
||||||
updateClearNowButtonLabel: function()
|
updateClearNowButtonLabel: function ()
|
||||||
{
|
{
|
||||||
var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]
|
var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]
|
||||||
.getService(Components.interfaces.nsIPrefBranch);
|
.getService(Components.interfaces.nsIPrefBranch);
|
||||||
var clearNowButton = document.getElementById("clearDataNow");
|
var clearNowButton = document.getElementById("clearDataNow");
|
||||||
if (prefBranch.getBoolPref("privacy.sanitize.promptOnSanitize"))
|
if (prefBranch.getBoolPref("privacy.sanitize.promptOnSanitize"))
|
||||||
clearNowButton.label = clearNowButton.getAttribute("label1"); // "Clear Now..."
|
clearNowButton.label = clearNowButton.getAttribute("label1"); // "Clear Now..."
|
||||||
else
|
else
|
||||||
clearNowButton.label = clearNowButton.getAttribute("label2"); // "Clear Now"
|
clearNowButton.label = clearNowButton.getAttribute("label2"); // "Clear Now"
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the Clear Private Data settings dialog.
|
* Displays the Clear Private Data settings dialog.
|
||||||
*/
|
*/
|
||||||
showClearPrivateDataSettings: function ()
|
showClearPrivateDataSettings: function ()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче