fixes #2174 batch manager, call pwg.images.syncMetadata in sequence, not parallel

This commit is contained in:
plegall
2024-07-09 20:04:51 +02:00
parent 6e6a74c348
commit 08087ba9bb
@@ -208,6 +208,12 @@ jQuery('#applyAction').click(function(e) {
});
}
var queuedManager = jQuery.manageAjax.create('queued', {
queue: true,
cacheResponse: false,
maxRequests: 1
});
progressBar_max = elements.length;
var todo = 0;
var syncBlockSize = Math.min(
@@ -229,7 +235,7 @@ jQuery('#applyAction').click(function(e) {
(function(ids) {
var thisBatchSize = ids.length;
jQuery.ajax({
queuedManager.add({
url: "ws.php?format=json&method=pwg.images.syncMetadata",
type:"POST",
dataType: "json",