aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-01-17 18:38:54 +0000
committerflop25 <flop25@piwigo.org>2013-01-17 18:38:54 +0000
commit63198af4992a825e4e1ccd6daba30c798be71d8a (patch)
tree4a8fb38f82b02dfd919d0c481999f0e446a42f0d /themes/default/js
parentb91d2f7772db73eb3be07cd269ebacd31c8a7b1f (diff)
bug:2820 & bug:2684
much better code : ability to pass max_requests to the js file like error_icon git-svn-id: http://piwigo.org/svn/trunk@20212 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/js')
-rw-r--r--themes/default/js/thumbnails.loader.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/default/js/thumbnails.loader.js b/themes/default/js/thumbnails.loader.js
index b383b7276..3d54dd825 100644
--- a/themes/default/js/thumbnails.loader.js
+++ b/themes/default/js/thumbnails.loader.js
@@ -1,7 +1,10 @@
+if ( typeof( max_requests ) == "undefined" )
+ max_requests = 3;
+
var thumbnails_queue = jQuery.manageAjax.create('queued', {
queue: true,
cacheResponse: false,
- maxRequests: 3,
+ maxRequests: max_requests,
preventDoubleRequests: false
});