Commit 44bc1a06 by Calen Pennington

Merge pull request #962 from MITx/bug/cas/tom/fakepath

fixed multiple file picker bug; removed 'fakepath' from uploading file n...
parents f970da6d b4ce13af
...@@ -428,7 +428,6 @@ function showUploadModal(e) { ...@@ -428,7 +428,6 @@ function showUploadModal(e) {
e.preventDefault(); e.preventDefault();
$modal = $('.upload-modal').show(); $modal = $('.upload-modal').show();
$('.file-input').bind('change', startUpload); $('.file-input').bind('change', startUpload);
$('.upload-modal .choose-file-button').bind('click', showFileSelectionMenu);
$modalCover.show(); $modalCover.show();
} }
...@@ -439,7 +438,7 @@ function showFileSelectionMenu(e) { ...@@ -439,7 +438,7 @@ function showFileSelectionMenu(e) {
function startUpload(e) { function startUpload(e) {
$('.upload-modal h1').html('Uploading…'); $('.upload-modal h1').html('Uploading…');
$('.upload-modal .file-name').html($('.file-input').val()); $('.upload-modal .file-name').html($('.file-input').val().replace('C:\\fakepath\\', ''));
$('.upload-modal .file-chooser').ajaxSubmit({ $('.upload-modal .file-chooser').ajaxSubmit({
beforeSend: resetUploadBar, beforeSend: resetUploadBar,
uploadProgress: showUploadFeedback, uploadProgress: showUploadFeedback,
......
Markdown is supported
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