Skip to content

Commit

Permalink
added missing removal of subdir from seq filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Harrison committed Jul 13, 2012
1 parent 8866503 commit e302344
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MGRAST/html/js/Upload.js
Expand Up @@ -319,7 +319,11 @@ function select_sequence_file () {
var valid = 1;
var broken = "";
for (i=0;i<selected_sequence_files.length; i++) {
var fn = selected_sequence_files[i].substr(0, selected_sequence_files[i].lastIndexOf('.'));
var start = 0;
if (selected_sequence_files[i].indexOf('/') > -1) {
start = selected_sequence_files[i].lastIndexOf('/') + 1;
}
var fn = selected_sequence_files[i].substr(start, selected_sequence_files[i].lastIndexOf('.'));
var found = 0;
for (h=0; h<selected_libraries.length; h++) {
if (selected_libraries[h] == fn) {
Expand Down

0 comments on commit e302344

Please sign in to comment.