From c339a34605871e4f7b0ec20945b073e9f9c4b214 Mon Sep 17 00:00:00 2001 From: bxy007 <315379105@qq.com> Date: Mon, 25 Jun 2018 16:14:22 +0800 Subject: [PATCH] fix:can't choose same file --- notebook/static/tree/js/notebooklist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 7d8de5267e..ab3e47ef78 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -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; };