Merge pull request #2040 from prototech/ticket/12208

[ticket/12208] Remove file from upload queue if deleted before being uploaded.
This commit is contained in:
Nathan Guse 2014-02-18 12:28:20 -06:00
commit 74836f8c64

View file

@ -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();