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