Changeset 9956


Ignore:
Timestamp:
03/31/11 21:19:33 (9 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.