Index: trunk/extensions/Maps/OpenLayers/OpenLayerFunctions.js |
— | — | @@ -120,12 +120,12 @@ |
121 | 121 | if (markerData.title.length + markerData.label.length > 0 ) { |
122 | 122 | |
123 | 123 | // This is the handler for the mousedown event on the marker, and displays the popup |
124 | | - marker.events.register("mousedown", marker, |
| 124 | + marker.events.register('mousedown', marker, |
125 | 125 | function(evt) { |
126 | 126 | var popup = new OpenLayers.Feature(markerLayer, markerData.lonlat).createPopup(true); |
127 | 127 | |
128 | 128 | if (markerData.title.length > 0 && markerData.label.length > 0) { // Add the title and label to the popup text |
129 | | - popup.setContentHTML("<b>" + markerData.title + "</b><hr />" + markerData.label); |
| 129 | + popup.setContentHTML('<b>' + markerData.title + '</b><hr />' + markerData.label); |
130 | 130 | } |
131 | 131 | else { |
132 | 132 | popup.setContentHTML(markerData.title + markerData.label); |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | |
156 | 156 | function initOLSettings(minWidth, minHeight) { |
157 | 157 | OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; |
158 | | - OpenLayers.Util.onImageLoadErrorColor = "transparent"; |
159 | | - OpenLayers.Feature.prototype.popupClass = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {"autoSize": true, "minSize": new OpenLayers.Size(minWidth, minHeight)}); |
| 158 | + OpenLayers.Util.onImageLoadErrorColor = 'transparent'; |
| 159 | + OpenLayers.Feature.prototype.popupClass = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {'autoSize': true, 'minSize': new OpenLayers.Size(minWidth, minHeight)}); |
160 | 160 | } |
161 | 161 | |