stupid bug

merge-requests/1/head
Julien Veyssier 2016-12-15 12:56:21 +01:00
parent 46c092965c
commit df1f64a3b9
1 changed files with 3 additions and 3 deletions

View File

@ -825,9 +825,9 @@ function hideSaveSuccessAnimation(){
}
function loadAction(file){
if (!endsWith(file, '.gpx') ||
!endsWith(file, '.kml') ||
!endsWith(file, '.jpg') ||
if (!endsWith(file, '.gpx') &&
!endsWith(file, '.kml') &&
!endsWith(file, '.jpg') &&
!endsWith(file, '.csv')){
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'));