Changeset 10012 for trunk


Ignore:
Timestamp:
Apr 3, 2011, 12:06:31 PM (14 years ago)
Author:
patdenice
Message:

feature:2238
Adapt wrap with thumbnail size in batch manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r9936 r10012  
    301301  });
    302302
     303  var max_dim = 20;
     304  $(".thumbnails img").each(function () {
     305    if ($(this).height() > (max_dim-20))
     306      max_dim = $(this).height() + 20;
     307    if ($(this).width() > (max_dim-20))
     308      max_dim = $(this).width() + 20;
     309    $("ul.thumbnails span, ul.thumbnails label").css('width', max_dim+'px').css('height', max_dim+'px');
     310  });
     311
    303312  checkPermitAction()
    304313});
Note: See TracChangeset for help on using the changeset viewer.