From 80e9fcaf47af6a041db385f18b0be00c15708da7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 1 Sep 2010 22:00:26 -0700 Subject: Don't use $.remove() to get rid of items from the uploadify queue; that breaks uploadify and causes it to be unable to upload any new items. Fixes ticket #1324. --- modules/gallery/views/form_uploadify.html.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/gallery/views/form_uploadify.html.php b/modules/gallery/views/form_uploadify.html.php index 36f5f284..893bb3b9 100644 --- a/modules/gallery/views/form_uploadify.html.php +++ b/modules/gallery/views/form_uploadify.html.php @@ -60,7 +60,7 @@ $("#g-add-photos-status ul").append( "
  • " + fileObj.name + " - " + for_js() ?> + "
  • "); - setTimeout(function() { $("#q" + queueID).slideUp("slow") }, 5000); + setTimeout(function() { $("#q" + queueID).slideUp("slow").remove() }, 5000); success_count++; update_status(); return true; @@ -87,8 +87,8 @@ .replace("__TYPE__", errorObj.type)); } $("#g-add-photos-status ul").append( - "
  • " + fileObj.name + msg + "
  • "); - $("#g-uploadify" + queueID).remove(); + "
  • " + fileObj.name + msg + "
  • "); + $("#g-uploadify").uploadifyCancel(queueID); error_count++; update_status(); }, -- cgit v1.2.3