From e27d3977ddfbcf6b341e23b9ca53753c3c8572e5 Mon Sep 17 00:00:00 2001 From: Sitt Min Oo Date: Thu, 14 Feb 2019 19:47:25 +0100 Subject: [PATCH] removed copy paste check --- app/templates/maps.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/templates/maps.html b/app/templates/maps.html index 5391141..446a573 100644 --- a/app/templates/maps.html +++ b/app/templates/maps.html @@ -52,16 +52,7 @@ let callback = function OSMCallBack(location, data){ var lat, lon; - if (data.features.length < 1) { - lat = 51.0538286; - lon = 3.7250121; - var className = 'is-invisible'; - var el = document.getElementById('map-error'); - if (el.classList) - el.classList.remove(className); - else - el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); - } else { + if (data.features.length >= 1 ) { var place = data.features[0].properties; lat = data.features[0].geometry.coordinates[1]; lon = data.features[0].geometry.coordinates[0];