Ignore:
Timestamp:
Mar 31, 2011, 9:19:33 PM (13 years ago)
Author:
patdenice
Message:

Automaticaly adapt wrap size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/regenerateThumbnails/regenerate_thumbnails.tpl

    r9937 r9956  
    289289  checkPermitAction()
    290290});
     291
     292var max_dim = 0;
     293$(window).load(function() {
     294  $(".thumbnails img").each(function () {
     295    if (jQuery(this).height() > max_dim)
     296      max_dim = jQuery(this).height() + 10;
     297    if (jQuery(this).width() > max_dim)
     298      max_dim = jQuery(this).height() + 10;
     299    jQuery("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px');
     300  });
     301});
    291302{/literal}{/footer_script}
    292303
Note: See TracChangeset for help on using the changeset viewer.