Ignore:
Timestamp:
Nov 24, 2012, 3:25:53 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (whith stripped white bloc )

File:
1 edited

Legend:

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

    r19031 r19156  
    368368
    369369      infos_theImage = jQuery(theImage_id).infos(true);                 // conteneur
    370 
    371 
     370      if (options.pictureSelType != "Autosize" && options.pictureSelType != "SelMaxi") {
     371        jQuery('#derivativeSwitchLink').show();
     372      }
    372373      if (test_theme("simple")) {
    373374        jQuery(theMainImage_id).css({ maxWidth: "none" });
     
    893894    ***************************/
    894895    Autosize_resize = function (force, parametres) {
     896
    895897      nAuto = Get_dimensions(true, options);
    896898
    897899      Save_cookies(options);
    898900      if (!options.valide || nAuto == false || (options.pictureSelType != "Autosize" && options.pictureSelType != "SelMaxi")) {
     901        if (options.imageAutosize == true) {
     902          options.pictureSelType = options.pictureDeriv;
     903        Zone_image.image_init.width = jQuery(theImg).width();
     904        Zone_image.image_init.height = jQuery(theImg).height();
     905          set_cl("no");
     906          Set_llbgo(true);
     907          return;
     908        }
    899909        jQuery(theImg).width(Zone_image.image_init.width);
    900910        jQuery(theImg).height(Zone_image.image_init.height);
     
    22632273
    22642274
    2265   });                                                                                                         // ready
     2275  });                                                                                                               // ready
    22662276
    22672277
Note: See TracChangeset for help on using the changeset viewer.