Ignore:
Timestamp:
Dec 17, 2013, 4:51:31 PM (10 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Wood/template/thumbnails.tpl

    r21060 r25981  
     1{define_derivative name='derivative_params' type='xsmall'}
    12{if !empty($thumbnails)}{strip}
    23
     
    4142
    4243<div class="thumbContent">
    43 <div id="containerThumb" class="clearfix">
     44<div id="containerThumb">
    4445
    4546{foreach from=$thumbnails item=thumbnail}
     
    9091</div>         
    9192{footer_script require='jquery'}{literal}
    92                         window.onload = function() {
    93                           var wall1 = new Masonry( document.getElementById('container'), {
    94                                 gutterWidth: 10,
    95                                 isFitWidth: true
    96                           });
    97                                 var wall2 = new Masonry( document.getElementById('containerThumb'), {
    98                                 gutterWidth: 10,
    99                                 isFitWidth: true
    100                           });
     93  $(function(){
    10194
    102                         };
     95    var $container = $('#containerThumb');
     96 
     97    $container.imagesLoaded( function(){
     98      $container.masonry({
     99        itemSelector : '.box',
     100                isFitWidth: true
     101      });
     102    });
     103 
     104  });
    103105{/literal}{/footer_script}
    104106</div>
Note: See TracChangeset for help on using the changeset viewer.