Don't show map if coords are undefined
This commit is contained in:
parent
faf1293f4d
commit
5da86bc6cb
1 changed files with 7 additions and 4 deletions
|
@ -324,11 +324,14 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
||||||
var lat = status.content.location.coordinates[0];
|
var lat = status.content.location.coordinates[0];
|
||||||
var lng = status.content.location.coordinates[1];
|
var lng = status.content.location.coordinates[1];
|
||||||
|
|
||||||
var href = this.mapHref(lat, lng);
|
if (typeof lat != "undefined" && typeof lng != "undefined" && lat > 0 && lng > 0) {
|
||||||
template.geo.href = href;
|
var href = this.mapHref(lat, lng);
|
||||||
template.geo.style.display = "";
|
template.geo.href = href;
|
||||||
|
template.geo.style.display = "";
|
||||||
|
|
||||||
|
this.addMap(lat, lng, template.images);
|
||||||
|
}
|
||||||
|
|
||||||
this.addMap(lat, lng, template.images);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof status.__repost != "undefined") {
|
if (typeof status.__repost != "undefined") {
|
||||||
|
|
Reference in a new issue