diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js
index db1c4be..8ebbb8c 100644
--- a/chrome/content/mailhops.js
+++ b/chrome/content/mailhops.js
@@ -17,7 +17,7 @@ var mailHops =
'debug':false,
'hide_compact':false,
'bar_color': '#5E7A9B',
- 'font_color': '#FFF',
+ 'font_color': '#ffffff',
'font_size': '14px',
'country_tag':false,
'travel_time_junk':false,
@@ -47,7 +47,7 @@ mailHops.init = function() {
window.openDialog("chrome://mailhops/content/preferences.xul","","chrome, dialog, modal, centerscreen").focus();
});
- document.getElementById("mailhopsDataPaneRefreshLink").addEventListener("click", function () {
+ document.getElementById("mailhopsDataPaneRefresh").addEventListener("click", function () {
mailHops.refreshCache();
});
@@ -66,7 +66,7 @@ mailHops.loadPref = function(reload)
//Display
mailHops.options.bar_color = mailHops.getCharPref('mail.mailHops.bar_color','#5E7A9B');
- mailHops.options.font_color = mailHops.getCharPref('mail.mailHops.font_color','#FFF');
+ mailHops.options.font_color = mailHops.getCharPref('mail.mailHops.font_color','#ffffff');
mailHops.options.font_size = mailHops.getCharPref('mail.mailHops.font_size','14px');
diff --git a/chrome/content/msgNotificationBar.js b/chrome/content/msgNotificationBar.js
index f2a3f9c..a72393b 100644
--- a/chrome/content/msgNotificationBar.js
+++ b/chrome/content/msgNotificationBar.js
@@ -28,40 +28,47 @@ var mailHopsDisplay =
this.mailhopsDataPaneDNSBL = document.getElementById("mailhopsDataPaneDNSBL");
//wait for message to be selected before showing
- if(!reload)
- this.mhBox.style.display = 'none';
+ if(!reload) this.mhBox.style.display = 'none';
//event listner for route click to launch map
this.mailhopsDataPaneDNSBL.addEventListener("click", function () {
- if(this.hasAttribute('data-ip'))
- mailHopsUtils.launchSpamHausURL( this.getAttribute('data-ip') );
- });
+ if(this.hasAttribute('data-ip'))
+ mailHopsUtils.launchSpamHausURL( this.getAttribute('data-ip') );
+ });
this.resultText.addEventListener("click", function () {
- if(this.value.indexOf('Rate Limit')!==-1){
+ if(this.value.indexOf('Rate Limit')!==-1)
window.openDialog("chrome://mailhops/content/preferences.xul","","chrome, dialog, modal, centerscreen").focus();
- }
else if(this.hasAttribute('data-route'))
mailHopsUtils.launchMap( String(this.getAttribute('data-route')), options );
- });
+ });
- if(!!options.bar_color)
- this.mhBox.style.background = options.bar_color;
- else
- this.mhBox.style.background = '';
+ this.mailhopsResultWeather.addEventListener("click", function () {
+ mailHopsUtils.launchExternalURL(this.getAttribute('href'));
+ });
- if(!!options.font_size)
- this.mhBox.style.fontSize = options.font_size;
+ this.mailhopsUnsubscribe.addEventListener("click", function () {
+ if(this.getAttribute('href'))
+ mailHopsUtils.launchExternalURL(this.getAttribute('href'));
+ });
- if(!!options.font_color){
- this.resultText.style.color = options.font_color;
- this.mailhopsResultWeather.style.color = options.font_color;
- this.mailhopsUnsubscribe.style.color = options.font_color;
- this.mailhopsDataPaneSPF.style.color = options.font_color;
- this.mailhopsDataPaneDKIM.style.color = options.font_color;
- this.mailhopsDataPaneMailer.style.color = options.font_color;
- this.mailhopsDataPaneDNSBL.style.color = options.font_color;
- }
+ if(!!options.bar_color)
+ this.mhBox.style.background = options.bar_color;
+ else
+ this.mhBox.style.background = '';
+
+ if(!!options.font_size)
+ this.mhBox.style.fontSize = options.font_size;
+
+ if(!!options.font_color){
+ this.resultText.style.color = options.font_color;
+ this.mailhopsResultWeather.style.color = options.font_color;
+ this.mailhopsUnsubscribe.style.color = options.font_color;
+ this.mailhopsDataPaneSPF.style.color = options.font_color;
+ this.mailhopsDataPaneDKIM.style.color = options.font_color;
+ this.mailhopsDataPaneMailer.style.color = options.font_color;
+ this.mailhopsDataPaneDNSBL.style.color = options.font_color;
+ }
},
lists: function( header_unsubscribe ){
diff --git a/chrome/content/msgNotificationBar.xul b/chrome/content/msgNotificationBar.xul
index ad881c8..757f5fd 100644
--- a/chrome/content/msgNotificationBar.xul
+++ b/chrome/content/msgNotificationBar.xul
@@ -17,16 +17,16 @@
-
+
-
+
-
+
@@ -34,9 +34,9 @@
-
+
-
+
diff --git a/chrome/content/preferences.js b/chrome/content/preferences.js
index d0c624d..dde5d8a 100644
--- a/chrome/content/preferences.js
+++ b/chrome/content/preferences.js
@@ -35,7 +35,7 @@ var mailHopPreferences = {
//Display Box styles
document.getElementById("mailhop.bar_color").value = pref.getCharPref("mail.mailHops.bar_color",'#5E7A9B');
- document.getElementById("mailhop.font_color").value = pref.getCharPref("mail.mailHops.font_color",'#FFF');
+ document.getElementById("mailhop.font_color").value = pref.getCharPref("mail.mailHops.font_color",'#ffffff');
document.getElementById("mailhop.font_size").value = pref.getCharPref("mail.mailHops.font_size",'14px');
//Update styles
@@ -90,7 +90,7 @@ var mailHopPreferences = {
document.getElementById("mailhops-membership-link").addEventListener("click", function () {
mailHopsUtils.launchExternalURL(this.getAttribute('data-account-url'));
});
-
+
this.saveAPIKey();
document.getElementById("mailhop.bar_color").addEventListener("input", function () {
diff --git a/chrome/content/preferences.xul b/chrome/content/preferences.xul
index 4129c4f..2d80ae4 100644
--- a/chrome/content/preferences.xul
+++ b/chrome/content/preferences.xul
@@ -519,7 +519,7 @@
-
+
@@ -540,7 +540,7 @@
-
+
@@ -560,7 +560,7 @@
-
+
diff --git a/chrome/skin/classic/msgNotificationBar.css b/chrome/skin/classic/msgNotificationBar.css
index 62f52f3..b96244f 100644
--- a/chrome/skin/classic/msgNotificationBar.css
+++ b/chrome/skin/classic/msgNotificationBar.css
@@ -38,6 +38,16 @@
font-weight: normal;
background: #5E7A9B;
overflow-x: scroll;
+ padding: 5px;
+}
+
+#mailhopsNoficationBox .bar-link {
+ cursor: pointer;
+ text-decoration: none;
+}
+
+#mailhopsNoficationBox .bar-link:hover {
+ text-decoration: underline;
}
#mailhopsNoficationBox #mailhopsDataPanePrefsLink {