mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
Allow browsing for multiple files at once
This commit is contained in:
parent
deae9e1f7e
commit
f9c95dda46
@ -36,6 +36,7 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
// Create element
|
// Create element
|
||||||
var domNode = this.document.createElement("input");
|
var domNode = this.document.createElement("input");
|
||||||
domNode.setAttribute("type","file");
|
domNode.setAttribute("type","file");
|
||||||
|
domNode.setAttribute("multiple","multiple");
|
||||||
// Add a click event handler
|
// Add a click event handler
|
||||||
domNode.addEventListener("change",function (event) {
|
domNode.addEventListener("change",function (event) {
|
||||||
self.wiki.readFiles(event.target.files,function(tiddlerFields) {
|
self.wiki.readFiles(event.target.files,function(tiddlerFields) {
|
||||||
|
Loading…
Reference in New Issue
Block a user