Prettified
This commit is contained in:
parent
936e5732b2
commit
4854342c92
3 changed files with 21 additions and 21 deletions
|
|
@ -82,11 +82,7 @@
|
|||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarLoadDropdown">
|
||||
<div id="navbarLoadTracksContainer">
|
||||
<a
|
||||
class="dropdown-item"
|
||||
data-i18n="navbar.load.tracks"
|
||||
href="#"
|
||||
id="navbarLoadTracks"
|
||||
<a class="dropdown-item" data-i18n="navbar.load.tracks" href="#" id="navbarLoadTracks"
|
||||
>Tracks</a
|
||||
>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ BR.tracksLoader = function(map, layersControl) {
|
|||
layerOptions: { style: { color: 'blue' } },
|
||||
addToMap: false,
|
||||
// File size limit in kb (default: 1024) ?
|
||||
fileSizeLimit: 1024,
|
||||
fileSizeLimit: 1024
|
||||
},
|
||||
|
||||
_initContainer: function() {
|
||||
|
|
@ -25,11 +25,15 @@ BR.tracksLoader = function(map, layersControl) {
|
|||
}
|
||||
fileInput.style.display = 'none';
|
||||
// Load on file change
|
||||
fileInput.addEventListener('change', function () {
|
||||
fileInput.addEventListener(
|
||||
'change',
|
||||
function() {
|
||||
thisLoader.loadMultiple(this.files);
|
||||
// reset so that the user can upload the same file again if they want to
|
||||
this.value = '';
|
||||
}, false);
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
var link = L.DomUtil.get('navbarLoadTracks');
|
||||
L.DomEvent.disableClickPropagation(link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue