From: Jan Schneider Date: Mon, 28 Jun 2010 21:43:30 +0000 (+0200) Subject: Fix indention. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6e5f3869f755b7214c7fa20c71e854080f66cebd;p=horde.git Fix indention. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 5456ead9d..5dff5de87 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -5518,34 +5518,32 @@ KronolithCore = { if (this.mapInitialized) { return; } - var layers = []; - if (Kronolith.conf.maps.providers) { - Kronolith.conf.maps.providers.each(function(l) - { - var p = new HordeMap[l](); - $H(p.getLayers()).values().each(function(e) {layers.push(e);}); - }); - } - - this.map = new HordeMap.Map[Kronolith.conf.maps.driver]( - { - elt: 'kronolithEventMap', - delayed: true, - layers: layers, - markerDragEnd: this.onMarkerDragEnd.bind(this), - mapClick: this.afterClickMap.bind(this) - }); - - if ($('kronolithEventLocationLat').value && !ignoreLL) { - var ll = { lat:$('kronolithEventLocationLat').value, lon: $('kronolithEventLocationLon').value }; - // Note that we need to cast the value of zoom to an integer here, - // otherwise the map display breaks. - this.placeMapMarker(ll, true, $('kronolithEventMapZoom').value - 0); - } - //@TODO: check for Location field - and if present, but no lat/lon value, attempt to - // geocode it. - this.map.display(); - this.mapInitialized = true; + var layers = []; + if (Kronolith.conf.maps.providers) { + Kronolith.conf.maps.providers.each(function(l) { + var p = new HordeMap[l](); + $H(p.getLayers()).values().each(function(e) {layers.push(e);}); + }); + } + + this.map = new HordeMap.Map[Kronolith.conf.maps.driver]({ + elt: 'kronolithEventMap', + delayed: true, + layers: layers, + markerDragEnd: this.onMarkerDragEnd.bind(this), + mapClick: this.afterClickMap.bind(this) + }); + + if ($('kronolithEventLocationLat').value && !ignoreLL) { + var ll = { lat:$('kronolithEventLocationLat').value, lon: $('kronolithEventLocationLon').value }; + // Note that we need to cast the value of zoom to an integer here, + // otherwise the map display breaks. + this.placeMapMarker(ll, true, $('kronolithEventMapZoom').value - 0); + } + //@TODO: check for Location field - and if present, but no lat/lon value, attempt to + // geocode it. + this.map.display(); + this.mapInitialized = true; }, resetMap: function()