diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-01 22:00:26 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-01 22:00:26 -0700 |
commit | 80e9fcaf47af6a041db385f18b0be00c15708da7 (patch) | |
tree | 9d46131af17b78f6de2f1dccb08a41dd37ffbf1f /modules/gallery/views | |
parent | 78c590ebaee738435260e3b0bf6cb8fb5431a08d (diff) |
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.
Diffstat (limited to 'modules/gallery/views')
-rw-r--r-- | modules/gallery/views/form_uploadify.html.php | 6 |
1 files changed, 3 insertions, 3 deletions
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( "<li id=\"q" + queueID + "\" class=\"g-success\">" + fileObj.name + " - " + <?= t("Completed")->for_js() ?> + "</li>"); - 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( - "<li class=\"g-error\">" + fileObj.name + msg + "</li>"); - $("#g-uploadify" + queueID).remove(); + "<li id=\"q" + queueID + "\" class=\"g-error\">" + fileObj.name + msg + "</li>"); + $("#g-uploadify").uploadifyCancel(queueID); error_count++; update_status(); }, |