Add GPX file download
This commit is contained in:
@@ -142,7 +142,7 @@ function initProject(sProjectCodeName){
|
||||
//Project Geojson: Hike track
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
url: self.vars(['project', 'geofile']),
|
||||
url: self.vars(['project', 'geofilepath']),
|
||||
mimeType: 'application/json'
|
||||
})
|
||||
).done(function(aoMessages, aoTracks) {
|
||||
@@ -249,6 +249,7 @@ function initSpotMessages(aoMessages, aoTracks) {
|
||||
var $Label = $('<label>').append($('<div>')
|
||||
.append($Radio)
|
||||
.append($('<span>').text(' '+asProject.name))
|
||||
.append($('<a>', {'class':'fa fa-download push-left', href:asProject.gpxfilepath}).click(function(e){e.stopPropagation();}))
|
||||
);
|
||||
$Labels.append($Label);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user