mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 12:30:42 +02:00
[ticket/11915] Do not allow more files to be added if queue is already running
PHPBB3-11915
This commit is contained in:
@@ -588,6 +588,9 @@ uploader.bind('FilesAdded', function(up, files) {
|
||||
$('#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.
|
||||
up.start();
|
||||
});
|
||||
@@ -659,6 +662,9 @@ uploader.bind('UploadComplete', function(up, files) {
|
||||
$(this).css('width', 0).show();
|
||||
});
|
||||
}, 2000);
|
||||
|
||||
// Re-enable the uploader
|
||||
phpbb.plupload.enableUploader();
|
||||
});
|
||||
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
|
Reference in New Issue
Block a user