fix location details loading a bit

This commit is contained in:
Laura Klünder 2017-12-11 01:30:13 +01:00
parent f17b593f77
commit 300895180c

View file

@ -217,12 +217,13 @@ c3nav = {
}
}
$location_details.find('.details-body').html('').append(elem);
var $editor = $location_details.removeClass('loading').find('.editor');
var $editor = $location_details.find('.editor');
if (data.editor_url) {
$editor.attr('href', data.editor_url).show();
} else {
$editor.hide();
}
$location_details.removeClass('loading');
},
load_route: function (origin, destination, nofly) {
var $route = $('#route-summary');