Handle Edge 17 and earlier versions

This commit is contained in:
Gautier Pelloux-Prayer 2019-05-30 21:43:35 +02:00
parent 481b28759c
commit ca489cbff0
2 changed files with 4 additions and 2 deletions

View file

@ -574,7 +574,7 @@
/> />
</div> </div>
</div> </div>
<fieldset class="form-group row"> <fieldset id="export-format" class="form-group row">
<legend <legend
class="col-form-legend col-sm-2" class="col-form-legend col-sm-2"
data-i18n="export.format" data-i18n="export.format"

View file

@ -23,7 +23,9 @@ BR.Export = L.Class.extend({
_export: function() { _export: function() {
var exportForm = document.forms['export']; var exportForm = document.forms['export'];
var format = exportForm['format'].value; var format =
exportForm['format'].value ||
$('#export-format input:radio:checked').val();
var name = encodeURIComponent(exportForm['trackname'].value); var name = encodeURIComponent(exportForm['trackname'].value);
var uri = this.router.getUrl(this.latLngs, format, name); var uri = this.router.getUrl(this.latLngs, format, name);