We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 237a310 + c339a34 commit b94cc44Copy full SHA for b94cc44
notebook/static/tree/js/notebooklist.js
@@ -338,11 +338,11 @@ define([
338
reader.onerror = reader_onerror;
339
}
340
});
341
- // Replace the file input form wth a clone of itself. This is required to
+ // Clear fileinput value. This is required to
342
// reset the form. Otherwise, if you upload a file, delete it and try to
343
// upload it again, the changed event won't fire.
344
var form = $('input.fileinput');
345
- form.replaceWith(form.clone(true));
+ form.val('');
346
return false;
347
};
348
0 commit comments