Skip to content

Commit

Permalink
Fix apple machine icon url
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjen van Bochoven committed Nov 20, 2017
1 parent 4bd9c72 commit 904e3ac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/modules/location/views/location.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
};

mapObj.map = new google.maps.Map($('#map')[0], options);

$.getJSON( appUrl + '/module/location/get_map_data', function( data ) {
mapObj.machines = data;
mapObj.infoWindow = new google.maps.InfoWindow();
mapObj.showMarkers();
});

};

mapObj.showMarkers = function() {
Expand All @@ -60,7 +60,7 @@
}

var numMarkers = mapObj.machines.length;

var bounds = new google.maps.LatLngBounds();

for (var i = 0; i < numMarkers; i++) {
Expand All @@ -87,10 +87,10 @@
var fn = mapObj.markerClickFunction(mapObj.machines[i], latLng);
google.maps.event.addListener(marker, 'click', fn);
mapObj.markers.push(marker);

bounds.extend(latLng);
}

// Set center and zoom
var center = bounds.getCenter();
mapObj.map.fitBounds(bounds);
Expand All @@ -111,8 +111,8 @@
var url = machine.photo_url;
var fileurl = machine.photo_file_url;

var infoHtml = '<div class="info">' +
'<img style="width:120px; height: auto" src="https://km.support.apple.com.edgekey.net/kb/securedImage.jsp?configcode='+machine.serial_number.substr(8)+'&amp;size=240x240" />' +
var infoHtml = '<div class="info">' +
'<img style="width:120px; height: auto" src="https://km.support.apple.com/kb/securedImage.jsp?configcode='+machine.serial_number.substr(8)+'&amp;size=240x240" />' +
'<div class="info-body">' +
machine.long_username +
'<br/>' +
Expand Down

0 comments on commit 904e3ac

Please sign in to comment.