From df1f64a3b9b09595271f982bcedbac0567793abb Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 15 Dec 2016 12:56:21 +0100 Subject: [PATCH] stupid bug --- js/gpxedit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/gpxedit.js b/js/gpxedit.js index 3ba4a03..cd2f806 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -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'));