1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 20:10:03 +00:00

Allow browsing for multiple files at once

This commit is contained in:
Jeremy Ruston 2013-10-30 16:05:49 +00:00
parent deae9e1f7e
commit f9c95dda46

View File

@ -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) {