mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-06 15:10:44 -04:00
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:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user