Ignore:
Timestamp:
Sep 14, 2010, 10:10:26 AM (14 years ago)
Author:
cljosse
Message:

[Autosize]update plugin


File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/Affiche_script.js

    r6912 r6913  
    66    jQuery(window).resize(function (event, ui) {
    77        if (typeof (event) == 'undefined') return;
    8         var Image = jQuery("#theImage").find("img");
    9         if (Image.length == 0) return;
     8        var Image = jQuery("#theImage").find("embed");
     9        if (Image.length == 0) {
     10
     11            var Image = jQuery("#theImage").find("img");
     12            if (Image.length == 0) return;
     13        } else {
     14            var TheImg = jQuery(Image).get(0);
     15            img_height = TheImg.clientHeight;
     16            img_width = TheImg.clientWidth;
     17        }
    1018        var TheImg = jQuery(Image).get(0);
     19       
     20        H00 = jQuery(TheImg).height();
     21        W00 = jQuery(TheImg).width();
    1122
    1223        var sel0 = jQuery(TheImg).position();
    1324        if (!sel0) return;
     25
    1426        W0 = parseInt(img_width);
    1527        if (W0 < mini_width) return;
     
    2638
    2739
    28         H00 = jQuery(TheImg).height();
    29         W00 = jQuery(TheImg).width();
    3040
    3141        var Licence = jQuery("#theImage").find(".licencetag");
Note: See TracChangeset for help on using the changeset viewer.