From 0c5937805b44619dd3b7095c15c01575988f5b98 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Fri, 11 Oct 2013 15:16:00 -0400 Subject: [PATCH] clear uploads in progress if discard is clicked, temp fix until composer is revamped --- public/src/modules/composer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 924cf94fec..5eee2aef2f 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -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); }