- Timestamp:
- Mar 31, 2011, 11:28:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/regenerateThumbnails/regenerate_thumbnails.tpl
r9957 r9959 287 287 }); 288 288 289 var max_dim = 0; 290 $(".thumbnails img").each(function () { 291 if ($(this).height() > max_dim) 292 max_dim = $(this).height() + 20; 293 if ($(this).width() > max_dim) 294 max_dim = $(this).width() + 20; 295 $("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px'); 296 }); 297 289 298 checkPermitAction() 290 });291 292 var 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() + 20;297 if (jQuery(this).width() > max_dim)298 max_dim = jQuery(this).height() + 20;299 jQuery("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px');300 });301 299 }); 302 300 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.