Importer: call showPicker only on openFiles, not at each open
This allows to open the files dialog with Ctrl+O
This commit is contained in:
parent
1bfbde320c
commit
c62c327878
1 changed files with 1 additions and 2 deletions
|
@ -117,13 +117,12 @@ L.U.Importer = L.Class.extend({
|
|||
|
||||
open: function () {
|
||||
if (!this.container) this.build()
|
||||
this.fileInput.showPicker()
|
||||
this.map.ui.openPanel({ data: { html: this.container }, className: 'dark' })
|
||||
},
|
||||
|
||||
openFiles: function () {
|
||||
this.open()
|
||||
this.fileInput.click()
|
||||
this.fileInput.showPicker()
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
|
|
Loading…
Reference in a new issue