diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php
index dbeca1dfdfd9..3a527cffdada 100644
--- a/resources/views/clients/show.blade.php
+++ b/resources/views/clients/show.blade.php
@@ -6,19 +6,6 @@
- @if ($client->showMap())
-
-
-
- @endif
@stop
@@ -233,8 +220,14 @@
@if ($client->showMap())
-
-
+
+
+
@endif
@@ -456,50 +449,6 @@
})
}
- @if ($client->showMap())
- function initialize() {
- var mapCanvas = document.getElementById('map');
- var mapOptions = {
- zoom: {{ DEFAULT_MAP_ZOOM }},
- mapTypeId: google.maps.MapTypeId.ROADMAP,
- zoomControl: true,
- };
-
- var map = new google.maps.Map(mapCanvas, mapOptions)
- var address = {!! json_encode(e("{$client->address1} {$client->address2} {$client->city} {$client->state} {$client->postal_code} " . ($client->country ? $client->country->getName() : ''))) !!};
-
- geocoder = new google.maps.Geocoder();
- geocoder.geocode( { 'address': address}, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK) {
- if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
- var result = results[0];
- map.setCenter(result.geometry.location);
-
- var infowindow = new google.maps.InfoWindow(
- { content: ''+result.formatted_address+'',
- size: new google.maps.Size(150, 50)
- });
-
- var marker = new google.maps.Marker({
- position: result.geometry.location,
- map: map,
- title:address,
- });
- google.maps.event.addListener(marker, 'click', function() {
- infowindow.open(map, marker);
- });
- } else {
- $('#map').hide();
- }
- } else {
- $('#map').hide();
- }
- });
- }
-
- google.maps.event.addDomListener(window, 'load', initialize);
- @endif
-
@stop