mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25: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]) {
|
if (composer.posts[post_uuid]) {
|
||||||
$(composer.postContainer).find('.imagedrop').hide();
|
$(composer.postContainer).find('.imagedrop').hide();
|
||||||
delete composer.posts[post_uuid];
|
delete composer.posts[post_uuid];
|
||||||
|
uploadsInProgress.length = 0;
|
||||||
composer.minimize();
|
composer.minimize();
|
||||||
taskbar.discard('composer', post_uuid);
|
taskbar.discard('composer', post_uuid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user