mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 05:37:59 +01:00
[ticket/12208] Remove file from upload queue if deleted before being uploaded.
The table row is removed, but the files aren't actually removed from the upload queue, so they get uploaded either way. PHPBB3-12208
This commit is contained in:
parent
9f923f2359
commit
1c56d28d9b
@ -230,6 +230,9 @@ phpbb.plupload.updateHiddenData = function(row, attach, index) {
|
||||
phpbb.plupload.deleteFile = function(row, attachId) {
|
||||
// If there's no attach id, then the file hasn't been uploaded. Simply delete the row.
|
||||
if (typeof attachId === 'undefined') {
|
||||
var file = uploader.getFile(row.attr('id'));
|
||||
uploader.removeFile(file);
|
||||
|
||||
row.slideUp(100, function() {
|
||||
row.remove();
|
||||
phpbb.plupload.hideEmptyList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user