Changeset 10013


Ignore:
Timestamp:
Apr 3, 2011, 12:08:15 PM (10 years ago)
Author:
patdenice
Message:

merge r10012 from trunk to branch 2.2
feature:2238
Adapt wrap with thumbnail size in batch manager

Location:
branches/2.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2

  • branches/2.2/admin/themes/default/template/batch_manager_global.tpl

    r9936 r10013  
    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.