fixed multiple file picker bug; removed 'fakepath' from uploading file name
This commit is contained in:
@@ -431,7 +431,6 @@ function showUploadModal(e) {
|
||||
e.preventDefault();
|
||||
$modal = $('.upload-modal').show();
|
||||
$('.file-input').bind('change', startUpload);
|
||||
$('.upload-modal .choose-file-button').bind('click', showFileSelectionMenu);
|
||||
$modalCover.show();
|
||||
}
|
||||
|
||||
@@ -442,7 +441,7 @@ function showFileSelectionMenu(e) {
|
||||
|
||||
function startUpload(e) {
|
||||
$('.upload-modal h1').html('Uploading…');
|
||||
$('.upload-modal .file-name').html($('.file-input').val());
|
||||
$('.upload-modal .file-name').html($('.file-input').val().replace(/.+\\/g, ''));
|
||||
$('.upload-modal .file-chooser').ajaxSubmit({
|
||||
beforeSend: resetUploadBar,
|
||||
uploadProgress: showUploadFeedback,
|
||||
|
||||
Reference in New Issue
Block a user