1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-18 07:10:09 -07:00

Changed format of install.rdf

This commit is contained in:
Andrew Van Tassel 2011-03-27 23:35:18 -06:00
parent e686a6bfa7
commit 133d5cee74
2 changed files with 18 additions and 12 deletions

View File

@ -19,7 +19,7 @@ var mailHops =
isLoaded: false, isLoaded: false,
map: 'goog', map: 'goog',
unit: 'mi', unit: 'mi',
appVersion: 'MailHops Thunderbird 0.4.2' appVersion: 'MailHops Thunderbird 0.4.3'
} }
mailHops.startLoading = function() mailHops.startLoading = function()
@ -178,11 +178,9 @@ mailHops.displayResult = function ( image, distance, city, state, countryName, r
if(image.indexOf('error')!=-1) { if(image.indexOf('error')!=-1) {
displayText = ' There was a problem connecting to MailHops.'; displayText = ' There was a problem connecting to MailHops.';
mailHops.container.removeAttribute("onclick");
} }
else if(image.indexOf('local')!=-1) { else if(image.indexOf('local')!=-1) {
displayText = ' Local message.'; displayText = ' Local message.';
mailHops.container.setAttribute("onclick","launchMap('"+route.toString()+"');");
} }
else { else {
if(city && state) if(city && state)
@ -196,9 +194,13 @@ mailHops.displayResult = function ( image, distance, city, state, countryName, r
displayText +=' ( '+addCommas(Math.round(distance.kilometers))+' km traveled )'; displayText +=' ( '+addCommas(Math.round(distance.kilometers))+' km traveled )';
} }
else if(displayText=='') else if(displayText=='')
displayText = ' Local message.'; displayText = ' Local message.';
mailHops.container.setAttribute("onclick","launchMap('"+route.toString()+"');");
} }
//add event for route api map
if(route)
mailHops.container.setAttribute("onclick","launchMap('"+route.toString()+"');");
else
mailHops.container.removeAttribute("onclick");
mailHops.resultText.textContent = displayText; mailHops.resultText.textContent = displayText;
mailHops.resultImage.src=image; mailHops.resultImage.src=image;

View File

@ -8,7 +8,7 @@
<em:type>2</em:type> <em:type>2</em:type>
<em:name>MailHops</em:name> <em:name>MailHops</em:name>
<em:version>0.4.2</em:version> <em:version>0.4.3</em:version>
<em:description>MailHops maps the route an email traveled to get to you. Using GeoIP it also displays distance traveled along with the location (city, state and country) of the sender.</em:description> <em:description>MailHops maps the route an email traveled to get to you. Using GeoIP it also displays distance traveled along with the location (city, state and country) of the sender.</em:description>
<em:iconURL>chrome://mailhops/content/images/mailhops32.png</em:iconURL> <em:iconURL>chrome://mailhops/content/images/mailhops32.png</em:iconURL>
@ -19,12 +19,16 @@
<em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL> <em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL>
<em:targetApplication resource="rdf:Thunderbird"/> <em:targetApplication>
<!-- Thunderbird -->
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>3.0</em:minVersion>
<em:maxVersion>3.1</em:maxVersion>
</Description>
</em:targetApplication>
</Description> </Description>
<Description about="rdf:Thunderbird"
em:id="{3550f703-e582-4d05-9a08-453d09bdfdc6}"
em:minVersion="3.0"
em:maxVersion="3.1.*"/>
</RDF> </RDF>