Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #175 from wilzbach/trigger_warnings_for_jalview
Browse files Browse the repository at this point in the history
trigger warnings for jalview
  • Loading branch information
wilzbach committed Jun 2, 2016
2 parents 5eb379c + 62b64f6 commit 660938b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu/views/ImportMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ImportMenu = MenuBuilder.extend({
// http://www.w3schools.com/jsref/prop_fileupload_accept.asp
// for now we allow multiple files
uploader.multiple = true;
uploader.addEventListener("change", function() {
uploader.addEventListener("change", () => {
var files = uploader.files || [];
return msa.u.file.importFiles(files);
});
Expand Down
2 changes: 2 additions & 0 deletions src/utils/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ var funs =
this.msa.g.config.set("url", "userimport");
this.msa.g.trigger("url:userImport");
} else if (type === "features") {
alert("Support for reading JalView files is limited. Please open a issue on github if you run into troubles");
this.msa.seqs.addFeatures(objs);
} else if (type === "newick") {
console.error("Loading Newick files is experimental. Please open a issue on github if you run into troubles");
this.msa.u.tree.loadTree(() => {
return this.msa.u.tree.showTree(file);
});
Expand Down

0 comments on commit 660938b

Please sign in to comment.