[Mediacontent] updated Mediacontent sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Tue, 23 Jul 2013 10:10:40 +0000 (12:10 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Tue, 23 Jul 2013 10:10:40 +0000 (12:10 +0200)
Change-Id: I97c5d685d610a2002a4745296c17be8bf656283e

js/main.js

index 11cc016..91ae89e 100755 (executable)
@@ -205,13 +205,14 @@ function makeCommonPropertiesListItems(item) {
 
 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)