mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11915] Do not allow more files to be added if queue is already running
PHPBB3-11915
This commit is contained in:
parent
1272c9272e
commit
6837b724a3
1 changed files with 6 additions and 0 deletions
|
@ -588,6 +588,9 @@ uploader.bind('FilesAdded', function(up, files) {
|
||||||
$('#file-total-progress-bar').css('width', up.total.percent + '%');
|
$('#file-total-progress-bar').css('width', up.total.percent + '%');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Do not allow more files to be added to the running queue.
|
||||||
|
phpbb.plupload.disableUploader();
|
||||||
|
|
||||||
// Start uploading the files once the user has selected them.
|
// Start uploading the files once the user has selected them.
|
||||||
up.start();
|
up.start();
|
||||||
});
|
});
|
||||||
|
@ -659,6 +662,9 @@ uploader.bind('UploadComplete', function(up, files) {
|
||||||
$(this).css('width', 0).show();
|
$(this).css('width', 0).show();
|
||||||
});
|
});
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
||||||
|
// Re-enable the uploader
|
||||||
|
phpbb.plupload.enableUploader();
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery); // Avoid conflicts with other libraries
|
})(jQuery); // Avoid conflicts with other libraries
|
||||||
|
|
Loading…
Add table
Reference in a new issue