Skip to content

Commit

Permalink
Merge pull request #3712 from forbxy/master
Browse files Browse the repository at this point in the history
fix:can't choose same file twice when in upload file
  • Loading branch information
minrk authored Aug 1, 2018
2 parents 237a310 + c339a34 commit b94cc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebook/static/tree/js/notebooklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,11 @@ define([
reader.onerror = reader_onerror;
}
});
// Replace the file input form wth a clone of itself. This is required to
// Clear fileinput value. This is required to
// reset the form. Otherwise, if you upload a file, delete it and try to
// upload it again, the changed event won't fire.
var form = $('input.fileinput');
form.replaceWith(form.clone(true));
form.val('');
return false;
};

Expand Down

0 comments on commit b94cc44

Please sign in to comment.