Changeset 10056


Ignore:
Timestamp:
Apr 4, 2011, 10:45:14 PM (13 years ago)
Author:
flop25
Message:

thumbnails can be bigger and smaller than 140px : resize for album and use of jquery for thumbnails to use maximum height

Location:
extensions/floOS/OS_glass
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_glass/local_head.tpl

    r9671 r10056  
     1
     2{footer_script}
     3{literal}
     4var max_dim_width = 0;
     5var max_dim_height = 0;
     6jQuery(document).ready(function() {
     7  $(".thumbnails img").each(function () {
     8    if (jQuery(this).height() > max_dim_height)
     9      max_dim_height = jQuery(this).height() + 10;
     10    if (jQuery(this).width() > max_dim_width)
     11      max_dim_width = jQuery(this).width() + 10;
     12
     13    jQuery(".wrap2")
     14      .css('width', max_dim_width+'px')
     15      .css('height', max_dim_height+'px');
     16  });
     17});
     18{/literal}
     19{/footer_script}
     20
    121{combine_script id='jquery.tipTip.minified' load='header' require='jquery' path='themes/OS_glass/tiptip/jquery.tipTip.minified.js'}
    222{html_head}{literal}
     
    2242{/literal}
    2343{/html_head}
    24 {literal} 
     44{literal}
    2545<!--[if lt IE 7]>
    2646<style>
  • extensions/floOS/OS_glass/theme.css

    r9708 r10056  
    6262
    6363.content DIV.thumbnailCategory {
    64         background-image: url(../../icon/menu/folder.png);
     64        background-image: url(../OS_default/icon/menu/folder.png);
    6565        background-position: left bottom;
    6666        background-repeat:no-repeat;
Note: See TracChangeset for help on using the changeset viewer.