stupid bug
parent
46c092965c
commit
df1f64a3b9
|
@ -825,9 +825,9 @@ function hideSaveSuccessAnimation(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadAction(file){
|
function loadAction(file){
|
||||||
if (!endsWith(file, '.gpx') ||
|
if (!endsWith(file, '.gpx') &&
|
||||||
!endsWith(file, '.kml') ||
|
!endsWith(file, '.kml') &&
|
||||||
!endsWith(file, '.jpg') ||
|
!endsWith(file, '.jpg') &&
|
||||||
!endsWith(file, '.csv')){
|
!endsWith(file, '.csv')){
|
||||||
OC.dialogs.alert(t('gpxedit', 'Impossible to load this file. ')+
|
OC.dialogs.alert(t('gpxedit', 'Impossible to load this file. ')+
|
||||||
t('gpxedit', 'Supported formats are gpx, kml, csv (unicsv) and jpg.'),t('gpxedit', 'Load error'));
|
t('gpxedit', 'Supported formats are gpx, kml, csv (unicsv) and jpg.'),t('gpxedit', 'Load error'));
|
||||||
|
|
Loading…
Reference in New Issue