refs #33 automatically add .gpx extension to save name
parent
5ba9a666c4
commit
93f7f6175e
|
@ -1450,7 +1450,11 @@
|
|||
|
||||
function saveAction(targetPath) {
|
||||
showExportingAnimation();
|
||||
var saveFilePath = targetPath + '/' + $('input#saveName').val();
|
||||
var saveName = $('input#saveName').val();
|
||||
if (!endsWith(saveName, '.gpx')) {
|
||||
saveName = saveName + '.gpx';
|
||||
}
|
||||
var saveFilePath = targetPath + '/' + saveName;
|
||||
var gpxText = generateGpx();
|
||||
hideExportingAnimation();
|
||||
$('#savingpc').text('0');
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue