aboutsummaryrefslogtreecommitdiff
path: root/chrome/js/browserOverlay.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/js/browserOverlay.js')
-rw-r--r--chrome/js/browserOverlay.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/js/browserOverlay.js b/chrome/js/browserOverlay.js
index ed1ab73..bfaff90 100644
--- a/chrome/js/browserOverlay.js
+++ b/chrome/js/browserOverlay.js
@@ -3,7 +3,7 @@ Components.utils.import("chrome://redirector/content/js/redirector.js");
var RedirectorOverlay = {
- strings : null,
+ strings : null,
prefs : null,
onLoad : function(event) {
@@ -12,16 +12,16 @@ var RedirectorOverlay = {
// initialization code
document.getElementById('contentAreaContextMenu')
.addEventListener("popupshowing", function(e) { RedirectorOverlay.showContextMenu(e); }, false);
-
+
this.strings = document.getElementById("redirector-strings");
this.prefs = new RedirectorPrefs();
this.changedPrefs(this.prefs);
- this.prefs.addListener(this);
+ this.prefs.addListener(this);
document.addEventListener('keypress', function(event) {
if ((event.charCode == 114) && event.altKey) { //alt+r
RedirectorOverlay.toggleEnabled();
}
- }, true);
+ }, true);
} catch(e) {
if (this.strings) {
alert(this.strings.getString("initError") + "\n\n" + e);
@@ -30,7 +30,7 @@ var RedirectorOverlay = {
}
}
},
-
+
onUnload : function(event) {
this.prefs.dispose();
Redirector.debug("Finished cleanup");
@@ -50,7 +50,7 @@ var RedirectorOverlay = {
document.getElementById('redirector-status').hidden = !prefs.showStatusBarIcon;
document.getElementById('redirector-context').hidden = !prefs.showContextMenu;
},
-
+
showContextMenu : function(event) {
if (gContextMenu.onLink) {
document.getElementById("redirector-context").label = this.strings.getString('addLinkUrl');
@@ -65,9 +65,9 @@ var RedirectorOverlay = {
redirect.redirectUrl = gContextMenu.link.toString();
}
- gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html");
+ gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html");
},
-
+
onMenuItemCommand: function(event) {
this.openSettings();
},
@@ -77,9 +77,9 @@ var RedirectorOverlay = {
},
openSettings : function() {
- gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html");
+ gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html");
},
-
+
statusBarClick : function(event) {
var LEFT = 0, RIGHT = 2;