From 1c56d28d9bd26d0a269084326e998c88e810d9f4 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Mon, 17 Feb 2014 15:11:24 -0800 Subject: [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 --- phpBB/assets/javascript/plupload.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'phpBB') diff --git a/phpBB/assets/javascript/plupload.js b/phpBB/assets/javascript/plupload.js index a90757d487..91a9806955 100644 --- a/phpBB/assets/javascript/plupload.js +++ b/phpBB/assets/javascript/plupload.js @@ -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(); -- cgit v1.2.1