remove unnecessary target="_blank" for download links
This commit is contained in:
parent
25f50434d0
commit
d260414f6c
1 changed files with 4 additions and 4 deletions
|
|
@ -11,12 +11,12 @@ BR.Download = BR.Control.extend({
|
||||||
update: function (urls) {
|
update: function (urls) {
|
||||||
var html = '<div class="value">';
|
var html = '<div class="value">';
|
||||||
if (urls.gpx) {
|
if (urls.gpx) {
|
||||||
html += '<a href="' + urls.gpx + '" download="brouter.gpx" target="_blank">GPX</a> · ';
|
html += '<a href="' + urls.gpx + '" download="brouter.gpx">GPX</a> · ';
|
||||||
html += '<a href="' + urls.kml + '" download="brouter.kml" target="_blank">KML</a> · ';
|
html += '<a href="' + urls.kml + '" download="brouter.kml">KML</a> · ';
|
||||||
html += '<a href="' + urls.geojson + '" download="brouter.geojson">GeoJSON</a> · ';
|
html += '<a href="' + urls.geojson + '" download="brouter.geojson">GeoJSON</a> · ';
|
||||||
html += '<a href="' + urls.csv + '" download="brouter.tsv" target="_blank">CSV</a>';
|
html += '<a href="' + urls.csv + '" download="brouter.tsv">CSV</a>';
|
||||||
}
|
}
|
||||||
html += '</div>'
|
html += '</div>';
|
||||||
this._content.innerHTML = html;
|
this._content.innerHTML = html;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue