mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
clear uploads in progress if discard is clicked, temp fix until composer is revamped
This commit is contained in:
@@ -384,6 +384,7 @@ define(['taskbar'], function(taskbar) {
|
||||
if (composer.posts[post_uuid]) {
|
||||
$(composer.postContainer).find('.imagedrop').hide();
|
||||
delete composer.posts[post_uuid];
|
||||
uploadsInProgress.length = 0;
|
||||
composer.minimize();
|
||||
taskbar.discard('composer', post_uuid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user