From e1b69c74caca8dd7f81afe2fb1d43f39948d25ea Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Fri, 21 Apr 2017 00:43:39 +0200 Subject: [PATCH] [BUGFIX] Remove location object output --- lib/infobox/location.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/infobox/location.js b/lib/infobox/location.js index fbaf544..ba09a7e 100644 --- a/lib/infobox/location.js +++ b/lib/infobox/location.js @@ -3,13 +3,13 @@ define(['helper'], function (helper) { return function (config, el, router, d) { var sidebarTitle = document.createElement('h2'); - sidebarTitle.textContent = _.t('location.location') + ': ' + d.toString(); + sidebarTitle.textContent = _.t('location.location'); el.appendChild(sidebarTitle); helper.getJSON(config.reverseGeocodingApi + '?format=json&lat=' + d.lat + '&lon=' + d.lng + '&zoom=18&addressdetails=0&accept-language=' + _.locale()) .then(function (result) { if (result.display_name) { - sidebarTitle.textContent = result.display_name; + sidebarTitle.outerHTML += '

' + result.display_name + '

'; } });