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