mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
fixes #2174 batch manager, call pwg.images.syncMetadata in sequence, not parallel
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user