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

Fix problem with "import" button not working

Fixes #308
This commit is contained in:
Jermolene 2013-12-30 11:54:51 +00:00
parent de2e5adf15
commit ec7dff291d

View File

@ -39,8 +39,8 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
domNode.setAttribute("multiple","multiple");
// Add a click event handler
domNode.addEventListener("change",function (event) {
self.wiki.readFiles(event.target.files,function(tiddlerFields) {
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify([tiddlerFields])});
self.wiki.readFiles(event.target.files,function(tiddlerFieldsArray) {
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
});
return false;
},false);