Skip to content

Commit

Permalink
Fix problem with "import" button not working
Browse files Browse the repository at this point in the history
Fixes #308
  • Loading branch information
Jermolene committed Dec 30, 2013
1 parent de2e5ad commit ec7dff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/modules/widgets/browse.js
Expand Up @@ -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);
Expand Down

0 comments on commit ec7dff2

Please sign in to comment.