mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
merge r10012 from trunk to branch 2.2
feature:2238 Adapt wrap with thumbnail size in batch manager git-svn-id: http://piwigo.org/svn/branches/2.2@10013 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user