Changeset 4725


Ignore:
Timestamp:
Jan 22, 2010, 10:48:10 PM (14 years ago)
Author:
vdigital
Message:

Still a bug with Chrome and Safari

Recommended organization: Don't mixed Pictures and subcategories in a category.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/script.tpl

    r4716 r4725  
    1212  {/html_head}
    1313<script type="text/javascript">
    14 $('div.illustration a img').ready(function() {ldelim}
     14$().ready(function() {ldelim}
    1515  $('div.illustration a img').each(function() {ldelim}
    16     var $h = $(this).height();
    17     $(this).css('top', '{$Juza_shift}px');
    18     $(this).parents('li').eq(0).css('height', '{$Juza_height2}px').css('min-height', '{$Juza_height2}px');
    19     $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , '{$Juza_height3}px').css('top', '{$Juza_shift3}px').find('li').css('width','100%');
    20     $(this).parents('.maxIllustration a').eq(0).css('height', '{$Juza_height}px');
    21     if ($h  < {$Juza_height3+20})  {ldelim} /* Kill Auto crop */
    22       var $i = ($h + 55)+'px';
    23       var $j = ($h + 325)+'px';
    24       var $k = ($h + 12)+'px';
    25       var $h = $h+'px';
    26       $(this).css('top', '0px');
    27       $(this).parents('li').eq(0).css('height', $i).css('min-height', $i);
    28       $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
    29       $(this).parents('.maxIllustration a').eq(0).css('height', $h);
    30     }; /* Kill Auto crop */
     16    $('div.illustration a img').load(function() {ldelim}
     17      // var $h = $(this).height();
     18      var pld = $(this), $h = pld.height();
     19      $(this).css('top', '{$Juza_shift}px');
     20      $(this).parents('li').eq(0).css('height', '{$Juza_height2}px').css('min-height', '{$Juza_height2}px');
     21      $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , '{$Juza_height3}px').css('top', '{$Juza_shift3}px').find('li').css('width','100%');
     22      $(this).parents('.maxIllustration a').eq(0).css('height', '{$Juza_height}px');
     23      if ($h  < {$Juza_height3+20})  {ldelim} /* Kill Auto crop */
     24        var $i = ($h + 55)+'px';
     25        var $j = ($h + 325)+'px';
     26        var $k = ($h + 12)+'px';
     27        var $h = $h+'px';
     28        $(this).css('top', '0px');
     29        $(this).parents('li').eq(0).css('height', $i).css('min-height', $i);
     30        $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
     31        $(this).parents('.maxIllustration a').eq(0).css('height', $h);
     32      }; /* Kill Auto crop */
     33    });
     34    var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
     35    $('#copyright').css('margin-top', $h+'px');
    3136  });
    32   var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
    33   $('#copyright').css('margin-top', $h+'px');
     37  $('div.illustration a img').ready(function() {ldelim}
     38    $('div.illustration a img').each(function() {ldelim}
     39      var $h = $(this).height();
     40      $(this).css('top', '{$Juza_shift}px');
     41      $(this).parents('li').eq(0).css('height', '{$Juza_height2}px').css('min-height', '{$Juza_height2}px');
     42      $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , '{$Juza_height3}px').css('top', '{$Juza_shift3}px').find('li').css('width','100%');
     43      $(this).parents('.maxIllustration a').eq(0).css('height', '{$Juza_height}px');
     44      if ($h  < {$Juza_height3+20})  {ldelim} /* Kill Auto crop */
     45        var $i = ($h + 55)+'px';
     46        var $j = ($h + 325)+'px';
     47        var $k = ($h + 12)+'px';
     48        var $h = $h+'px';
     49        $(this).css('top', '0px');
     50        $(this).parents('li').eq(0).css('height', $i).css('min-height', $i);
     51        $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
     52        $(this).parents('.maxIllustration a').eq(0).css('height', $h);
     53      }; /* Kill Auto crop */
     54    });
     55    var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
     56    $('#copyright').css('margin-top', $h+'px');
     57  });
    3458});
    3559</script>
Note: See TracChangeset for help on using the changeset viewer.