mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature #593, dynamic bloc size instead of fixed at 100.
1000 by default or half of the element list. The action should alway require at least 2 ajax calls, even for 2 photos to delete (exception for 1 photo, of course)
This commit is contained in:
@@ -256,7 +256,10 @@ jQuery('#applyAction').click(function(e) {
|
||||
|
||||
progressBar_max = elements.length;
|
||||
var todo = 0;
|
||||
var deleteBlockSize = 100;
|
||||
var deleteBlockSize = Math.min(
|
||||
Number((elements.length/2).toFixed()),
|
||||
1000
|
||||
);
|
||||
var image_ids = Array();
|
||||
|
||||
jQuery('#applyActionBlock').hide();
|
||||
|
||||
Reference in New Issue
Block a user