Index: trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMapFunctions.js |
— | — | @@ -51,9 +51,9 @@ |
52 | 52 | marker = new GMarker(markerData.point); |
53 | 53 | } |
54 | 54 | |
55 | | - if ((markerData.title + markerData.label).length != '') { |
56 | | - var bothTxtAreSet = markerData.title.length != '' |
57 | | - && markerData.label.length != ''; |
| 55 | + if ( markerData.title + markerData.label != '' ) { |
| 56 | + var bothTxtAreSet = markerData.title != '' |
| 57 | + && markerData.label != ''; |
58 | 58 | var popupText = bothTxtAreSet ? '<b>' + markerData.title + '</b><hr />' |
59 | 59 | + markerData.label : markerData.title + markerData.label; |
60 | 60 | popupText = '<div style="overflow:auto;max-height:130px;">' + popupText |