mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
[ticket/11915] Hide attachments table when removing last failed file.
PHPBB3-11915
This commit is contained in:
parent
628323a80a
commit
c1cca8aff4
@ -256,8 +256,10 @@ 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') {
|
||||
phpbb.plupload.hideEmptyList();
|
||||
row.slideUp(100).delay(100).remove();
|
||||
row.slideUp(100, function() {
|
||||
row.remove();
|
||||
phpbb.plupload.hideEmptyList();
|
||||
});
|
||||
}
|
||||
|
||||
var index = phpbb.plupload.getIndex(attachId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user