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.
This commit is contained in:
Bharat Mediratta
2010-09-01 22:00:26 -07:00
parent 78c590ebae
commit 80e9fcaf47
@@ -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();
},