From 9a5aadb4ad59f70e39290aa317cf5628635b33fe Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Thu, 17 Sep 2015 23:35:54 -0600 Subject: [PATCH] Fixed save language in preferences Added map provider in preferences Bump 1.0.2 --- chrome/content/mailhops.js | 2 + chrome/content/mailhopsMap.xul | 6 ++ chrome/content/preferences.js | 10 +-- chrome/content/preferences.xul | 112 ++++++++++++++++++++++++++++++++- chrome/content/utils.js | 3 + install.rdf | 2 +- mailhops.xpi | Bin 195409 -> 196752 bytes 7 files changed, 127 insertions(+), 8 deletions(-) diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js index ecf78df..821ef3c 100644 --- a/chrome/content/mailhops.js +++ b/chrome/content/mailhops.js @@ -67,6 +67,8 @@ mailHops.loadPref = function() mailHops.options.client_location = mailHops.getCharPref('mail.mailHops.client_location',''); mailHops.options.api_url = mailHops.getCharPref('mail.mailHops.api_url','http://api.mailhops.com'); + + mailHops.options.map_provider = mailHops.getCharPref('mail.mailHops.map_provider','OpenStreetMap.Mapnik'); if(mailHops.options.client_location == ''){ mailHops.setClientLocation(function(response){ diff --git a/chrome/content/mailhopsMap.xul b/chrome/content/mailhopsMap.xul index defe109..7d3080e 100644 --- a/chrome/content/mailhopsMap.xul +++ b/chrome/content/mailhopsMap.xul @@ -9,6 +9,12 @@ title="MailHops Map" buttonlabelcancel="Close"> + +