summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/preferences/in-content/content.js
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2018-10-11 23:34:52 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2018-10-11 23:34:52 -0400
commit98bf922150a1ba5fe248735b377deca3dbb62043 (patch)
tree220c8eea5a6fe778ebc7ae46714c8733d90e2655 /application/basilisk/components/preferences/in-content/content.js
parentea5b5766a92bc13fc7eb9dc484e133a7a0638d50 (diff)
downloadUXP-98bf922150a1ba5fe248735b377deca3dbb62043.tar
UXP-98bf922150a1ba5fe248735b377deca3dbb62043.tar.gz
UXP-98bf922150a1ba5fe248735b377deca3dbb62043.tar.lz
UXP-98bf922150a1ba5fe248735b377deca3dbb62043.tar.xz
UXP-98bf922150a1ba5fe248735b377deca3dbb62043.zip
Issue #832 Part 1: Remove modules, chrome, and preferences.
Diffstat (limited to 'application/basilisk/components/preferences/in-content/content.js')
-rw-r--r--application/basilisk/components/preferences/in-content/content.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/application/basilisk/components/preferences/in-content/content.js b/application/basilisk/components/preferences/in-content/content.js
index a957b1dd5..2eac10ca4 100644
--- a/application/basilisk/components/preferences/in-content/content.js
+++ b/application/basilisk/components/preferences/in-content/content.js
@@ -31,18 +31,6 @@ var gContentPane = {
menulist.value = FontBuilder.readFontSelection(menulist);
}
- // Show translation preferences if we may:
- const prefName = "browser.translation.ui.show";
- if (Services.prefs.getBoolPref(prefName)) {
- let row = document.getElementById("translationBox");
- row.removeAttribute("hidden");
- // Showing attribution only for Bing Translator.
- Components.utils.import("resource:///modules/translation/Translation.jsm");
- if (Translation.translationEngine == "bing") {
- document.getElementById("bingAttribution").removeAttribute("hidden");
- }
- }
-
if (AlertsServiceDND) {
let notificationsDoNotDisturbRow =
document.getElementById("notificationsDoNotDisturbRow");
@@ -66,10 +54,6 @@ var gContentPane = {
gContentPane.configureColors);
setEventListener("chooseLanguage", "command",
gContentPane.showLanguages);
- setEventListener("translationAttributionImage", "click",
- gContentPane.openTranslationProviderAttribution);
- setEventListener("translateButton", "command",
- gContentPane.showTranslationExceptions);
setEventListener("notificationsDoNotDisturb", "command",
gContentPane.toggleDoNotDisturbNotifications);
@@ -274,21 +258,6 @@ var gContentPane = {
gSubDialog.open("chrome://browser/content/preferences/languages.xul");
},
- /**
- * Displays the translation exceptions dialog where specific site and language
- * translation preferences can be set.
- */
- showTranslationExceptions: function ()
- {
- gSubDialog.open("chrome://browser/content/preferences/translation.xul");
- },
-
- openTranslationProviderAttribution: function ()
- {
- Components.utils.import("resource:///modules/translation/Translation.jsm");
- Translation.openProviderAttribution();
- },
-
toggleDoNotDisturbNotifications: function (event)
{
AlertsServiceDND.manualDoNotDisturb = event.target.checked;