Bug 1241893 - Remove non-used properties strings about about:profiles, r=ehsan

This commit is contained in:
Andrea Marchesini 2016-01-23 01:51:35 +00:00
parent 5c91f8307d
commit 8dc653160a
4 changed files with 4 additions and 25 deletions

View File

@ -51,13 +51,6 @@ function findCurrentProfile() {
}
}
function initializeUI() {
document.getElementById('about-profile-action-box').style.display = 'block';
document.getElementById('profile-manager-action-box').style.display = 'none';
refreshUI();
}
function refreshUI() {
let parent = document.getElementById('profiles');
while (parent.firstChild) {
@ -321,5 +314,5 @@ function restart(safeMode) {
window.addEventListener('DOMContentLoaded', function load() {
window.removeEventListener('DOMContentLoaded', load);
initializeUI();
refreshUI();
});

View File

@ -21,17 +21,9 @@
</head>
<body id="body">
<div id="action-box">
<div id="about-profile-action-box">
<h3>&aboutProfiles.restart.title;</h3>
<button id="restart-in-safe-mode-button">&aboutProfiles.restart.inSafeMode;</button>
<button id="restart-button">&aboutProfiles.restart.normal;</button>
</div>
<div id="profile-manager-action-box">
<input type="checkbox" id="work-offline"/>
<label for="work-offline">&aboutProfiles.profileManager.workOffline;</label><br />
<input type="checkbox" id="auto-select"/>
<label for="auto-select">&aboutProfiles.profileManager.autoSelect;</label>
</div>
<h3>&aboutProfiles.restart.title;</h3>
<button id="restart-in-safe-mode-button">&aboutProfiles.restart.inSafeMode;</button>
<button id="restart-button">&aboutProfiles.restart.normal;</button>
</div>
<h1>&aboutProfiles.title;</h1>

View File

@ -8,5 +8,3 @@
<!ENTITY aboutProfiles.restart.title "Restart">
<!ENTITY aboutProfiles.restart.inSafeMode "Restart with Add-ons Disabled…">
<!ENTITY aboutProfiles.restart.normal "Restart normally…">
<!ENTITY aboutProfiles.profileManager.workOffline "Work Offline">
<!ENTITY aboutProfiles.profileManager.autoSelect "Use the selected profile without asking at startup">

View File

@ -66,7 +66,3 @@ td {
#action-box:-moz-dir(rtl) {
float: left;
}
#action-box button {
display: block;
}