r83107 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83106‎ | r83107 | r83108 >
Date:20:16, 2 March 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
small fix
Modified paths:
  • /trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMapFunctions.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMapFunctions.js
@@ -51,9 +51,9 @@
5252 marker = new GMarker(markerData.point);
5353 }
5454
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 != '';
5858 var popupText = bothTxtAreSet ? '<b>' + markerData.title + '</b><hr />'
5959 + markerData.label : markerData.title + markerData.label;
6060 popupText = '<div style="overflow:auto;max-height:130px;">' + popupText

Status & tagging log