1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +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
var domNode = this.document.createElement("input");
domNode.setAttribute("type","file");
domNode.setAttribute("multiple","multiple");
// Add a click event handler
domNode.addEventListener("change",function (event) {
self.wiki.readFiles(event.target.files,function(tiddlerFields) {