aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-03 10:08:15 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-03 10:08:15 +0000
commit00ed60887729a445a0bdd26729a362bd2377f052 (patch)
tree5aacceb1326ed3d269dc8eda0cbee1f7cb04f5fb /admin/themes
parente0d8b5893ce21d8ed7a89cc768e00f332b8110b8 (diff)
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
Diffstat (limited to 'admin/themes')
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl9
1 files changed, 9 insertions, 0 deletions
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}