Changeset 19021


Ignore:
Timestamp:
Nov 15, 2012, 9:34:34 AM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (fix bugs on init)

File:
1 edited

Legend:

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

    r19003 r19021  
    551551    var pictureSelType_user = eval("options." + user_status + "_type"); //limite taille
    552552
    553     if (Type_Img == "pamoorama")
    554       options.pictureSelType = "Autosize";
     553
     554    if (pictureSelType_user != "Autosize" && pictureSelType_user != "SelMaxi") {
     555      if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") {
     556        options.pictureSelType = pictureSelType_user;
     557        options.pictureDeriv = pictureSelType_user;
     558      }
     559    }
     560    if (!cookies.pictureDeriv) Save_cookies(options);
    555561
    556562    if (pictureSelType_user != options.pictureSelType) {
     
    567573      options.pictureDeriv = pictureDeriv;
    568574    }
    569 
     575    if (Type_Img == "pamoorama")
     576      options.pictureSelType = "Autosize";
    570577    for (i = 0; i < options.liste_type.length; i++) {
    571578      options.liste_type[i] = options.liste_type[i].split(",");
     
    22372244
    22382245
    2239   });                                                                                       // ready
     2246  });                                                                                           // ready
    22402247
    22412248
Note: See TracChangeset for help on using the changeset viewer.