mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
Backed out changeset c45bc43fd660 (bug 1366575) for eslint failures
This commit is contained in:
parent
abac85f1d9
commit
07c3b0c166
@ -993,7 +993,7 @@ function populateActionBox() {
|
|||||||
$("reset-box").style.display = "block";
|
$("reset-box").style.display = "block";
|
||||||
$("action-box").style.display = "block";
|
$("action-box").style.display = "block";
|
||||||
}
|
}
|
||||||
if (!Services.appinfo.inSafeMode && AppConstants.platform !== "android") {
|
if (!Services.appinfo.inSafeMode) {
|
||||||
$("safe-mode-box").style.display = "block";
|
$("safe-mode-box").style.display = "block";
|
||||||
$("action-box").style.display = "block";
|
$("action-box").style.display = "block";
|
||||||
}
|
}
|
||||||
@ -1013,31 +1013,13 @@ function safeModeRestart() {
|
|||||||
* Set up event listeners for buttons.
|
* Set up event listeners for buttons.
|
||||||
*/
|
*/
|
||||||
function setupEventListeners() {
|
function setupEventListeners() {
|
||||||
if (AppConstants.platform !== "android"){
|
$("show-update-history-button").addEventListener("click", function(event) {
|
||||||
$("show-update-history-button").addEventListener("click", function(event) {
|
var prompter = Cc["@mozilla.org/updates/update-prompt;1"].createInstance(Ci.nsIUpdatePrompt);
|
||||||
var prompter = Cc["@mozilla.org/updates/update-prompt;1"].createInstance(Ci.nsIUpdatePrompt);
|
|
||||||
prompter.showUpdateHistory(window);
|
prompter.showUpdateHistory(window);
|
||||||
});
|
});
|
||||||
$("reset-box-button").addEventListener("click", function(event) {
|
$("reset-box-button").addEventListener("click", function(event) {
|
||||||
ResetProfile.openConfirmationDialog(window);
|
ResetProfile.openConfirmationDialog(window);
|
||||||
});
|
});
|
||||||
$("restart-in-safe-mode-button").addEventListener("click", function(event) {
|
|
||||||
if (Services.obs.enumerateObservers("restart-in-safe-mode").hasMoreElements()) {
|
|
||||||
Services.obs.notifyObservers(null, "restart-in-safe-mode");
|
|
||||||
} else {
|
|
||||||
safeModeRestart();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$("verify-place-integrity-button").addEventListener("click", function(event) {
|
|
||||||
PlacesDBUtils.checkAndFixDatabase().then((tasksStatusMap) => {
|
|
||||||
let msg = PlacesDBUtils.getLegacyLog(tasksStatusMap).join("\n");
|
|
||||||
$("verify-place-result").style.display = "block";
|
|
||||||
$("verify-place-result").classList.remove("no-copy");
|
|
||||||
$("verify-place-result").textContent = msg;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$("copy-raw-data-to-clipboard").addEventListener("click", function(event) {
|
$("copy-raw-data-to-clipboard").addEventListener("click", function(event) {
|
||||||
copyRawDataToClipboard(this);
|
copyRawDataToClipboard(this);
|
||||||
});
|
});
|
||||||
@ -1047,4 +1029,19 @@ function setupEventListeners() {
|
|||||||
$("profile-dir-button").addEventListener("click", function(event) {
|
$("profile-dir-button").addEventListener("click", function(event) {
|
||||||
openProfileDirectory();
|
openProfileDirectory();
|
||||||
});
|
});
|
||||||
|
$("restart-in-safe-mode-button").addEventListener("click", function(event) {
|
||||||
|
if (Services.obs.enumerateObservers("restart-in-safe-mode").hasMoreElements()) {
|
||||||
|
Services.obs.notifyObservers(null, "restart-in-safe-mode");
|
||||||
|
} else {
|
||||||
|
safeModeRestart();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("verify-place-integrity-button").addEventListener("click", function(event) {
|
||||||
|
PlacesDBUtils.checkAndFixDatabase().then((tasksStatusMap) => {
|
||||||
|
let msg = PlacesDBUtils.getLegacyLog(tasksStatusMap).join("\n");
|
||||||
|
$("verify-place-result").style.display = "block";
|
||||||
|
$("verify-place-result").classList.remove("no-copy");
|
||||||
|
$("verify-place-result").textContent = msg;
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -470,7 +470,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
#ifndef ANDROID
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
||||||
|
|
||||||
<h2 class="major-section">
|
<h2 class="major-section">
|
||||||
@ -491,7 +490,6 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
#endif
|
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<h2 class="major-section">
|
<h2 class="major-section">
|
||||||
|
Loading…
Reference in New Issue
Block a user