mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Reset file upload form after an upload.
This commit is contained in:
parent
9fbeaa1e37
commit
d21258bbcc
@ -92,6 +92,11 @@ var IPython = (function (IPython) {
|
||||
});
|
||||
}
|
||||
}
|
||||
// Replace the file input form wth a clone of itself. 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));
|
||||
return false;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user