aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/batch_manager_global.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/template/batch_manager_global.tpl')
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl14
1 files changed, 6 insertions, 8 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl
index 3f283e70e..f1e722e35 100644
--- a/admin/themes/default/template/batch_manager_global.tpl
+++ b/admin/themes/default/template/batch_manager_global.tpl
@@ -428,14 +428,12 @@ $(document).ready(function() {
});
jQuery(window).load(function() {
- 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');
- });
+ var max_dim = 0;
+ $(".thumbnails img").each(function () {
+ max_dim = Math.max(max_dim, $(this).height(), $(this).width() );
+ });
+ max_dim += 20;
+ $("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px');
});
{/literal}{/footer_script}