Commit 79dc90fc authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Bug fix: clear the uploaded file name so that the change handler will run

if the same file is selected again (say, after fixing a script error).
parent 3c836228
......@@ -170,6 +170,12 @@ function (_, sup, filesize, JacksEditor, ShowImagingModal, moment, ppstart,
reader.onload = function(event) {
var newrspec = event.target.result;
/*
* Clear the file so that the change handler will
* run if the same file is selected again (say, after
* fixing a script error).
*/
$("#sourcefile").filestyle('clear');
changeRspec(newrspec);
};
reader.readAsText(this.files[0]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment