Ignore:
Timestamp:
Sep 4, 2011, 12:43:01 PM (13 years ago)
Author:
flop25
Message:

compatibility autosize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/imgpreview/css_js.tpl

    r11948 r12045  
    44{if isset($imgpreview)}
    55{literal}
    6 $('.thumbnails a, #thumbnails a').imgPreview({
     6jQuery('.thumbnails a, #thumbnails a').imgPreview({
    77    containerID: 'tooltip',
    88                srcAttr: 'imgsrc',
     
    1111    onShow: function(link){
    1212      {/literal}{if $imgpreview.title=="true"}{literal}
    13       $('<span>' + $(link).children().attr("title") + '</span>').appendTo(this);
     13      jQuery('<span>' + jQuery(link).children().attr("title") + '</span>').appendTo(this);
    1414     
    1515      {/literal}{/if}{if $imgpreview.opacity=="true"}{literal}
    16       $(link).stop().animate({opacity:0.4});
     16      jQuery(link).stop().animate({opacity:0.4});
    1717      // Reset image:
    18       $('img', this).stop().css({opacity:0});
     18      jQuery('img', this).stop().css({opacity:0});
    1919      {/literal}{/if}{literal}
    2020    },
    2121    onLoad: function(){
    2222      {/literal}{if $imgpreview.opacity=="true"}{literal}
    23       $(this).animate({opacity:1}, 300);
     23      jQuery(this).animate({opacity:1}, 300);
    2424      {/literal}{/if}{literal}
    2525    },
     
    2727    onHide: function(link){
    2828      {/literal}{if $imgpreview.title=="true"}{literal}
    29       $('span', this).remove();
     29      jQuery('span', this).remove();
    3030      {/literal}{/if}{if $imgpreview.opacity=="true"}{literal}
    31       $(link).stop().animate({opacity:1});
     31      jQuery(link).stop().animate({opacity:1});
    3232      {/literal}{/if}{literal}
    3333    }
Note: See TracChangeset for help on using the changeset viewer.