improve style a bit

This commit is contained in:
Stefan Breunig 2013-02-23 09:28:38 +01:00
parent f3d19d1085
commit dabf808e8e

View File

@ -21,9 +21,11 @@ if(typeof window.plugin !== 'function') window.plugin = function() {};
window.plugin.portalAddress = function() {}; window.plugin.portalAddress = function() {};
window.plugin.portalAddress.portalDetail = function(data) { window.plugin.portalAddress.portalDetail = function(data) {
//If there's 4 sets of comma delimieted info the last one is the country, so get rid of it. If the country // If there's 4 sets of comma delimieted info the last one is the
//is in the [2] then it doesn't matter because address is usually short enough to fit. // country, so get rid of it. If the country is in the [2] then it
var address = data.portalDetails.portalV2.descriptiveText.ADDRESS.split(',').splice(0,3).join(','); // doesn't matter because address is usually short enough to fit.
var d = data.portalDetails.portalV2;
var address = d.descriptiveText.ADDRESS.split(',').splice(0,3).join(',');
$('.imgpreview').append('<div id="address">'+address+'</div>'); $('.imgpreview').append('<div id="address">'+address+'</div>');
} }