function showMediaDetail() {
var str, item = gMediaItems[gItemId];
-
if (item.type == "IMAGE") {
str = makeCommonPropertiesListItems(item)
+ makeListItem(null, "Width", item.width)
- + makeListItem(null, "Height", item.height)
- + makeListItem(null, "Latitude", item.geolocation.latitude)
- + makeListItem(null, "Longitude", item.geolocation.longitude);
+ + makeListItem(null, "Height", item.height);
+ if (item.geolocation) {
+ str += makeListItem(null, "Latitude", item.geolocation.latitude)
+ + makeListItem(null, "Longitude", item.geolocation.longitude);
+ }
} else if (item.type == "VIDEO") {
str = makeCommonPropertiesListItems(item)
+ makeListItem(null, "Width", item.width)