From dba1f4950f18dd96483fca7125f423cf5f063d81 Mon Sep 17 00:00:00 2001 From: patdenice Date: Sun, 3 Apr 2011 10:06:31 +0000 Subject: feature:2238 Adapt wrap with thumbnail size in batch manager git-svn-id: http://piwigo.org/svn/trunk@10012 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/batch_manager_global.tpl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'admin/themes/default') diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index 27fbaf64b..a582b09d4 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -300,6 +300,15 @@ $(document).ready(function() { return false; }); + var max_dim = 20; + $(".thumbnails img").each(function () { + if ($(this).height() > (max_dim-20)) + max_dim = $(this).height() + 20; + if ($(this).width() > (max_dim-20)) + max_dim = $(this).width() + 20; + $("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px'); + }); + checkPermitAction() }); {/literal}{/footer_script} -- cgit v1.2.3