Changeset 19031


Ignore:
Timestamp:
Nov 15, 2012, 12:35:42 PM (8 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (fix bug on size[xsmall to xxlarge] )

File:
1 edited

Legend:

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

    r19030 r19031  
    584584      options.pictureSelType = "Autosize";
    585585    }
     586    new_liste = new Array();
    586587    for (i = 0; i < options.liste_type.length; i++) {
    587       options.liste_type[i] = options.liste_type[i].split(",");
    588     }
    589 
     588      liste_types = options.liste_type[i].split(",");
     589      new_liste.push(options.liste_type[i].split(","));
     590      if (liste_types[0] == pictureSelType_user) {
     591        break;
     592      }
     593    }
     594    options.liste_type = new_liste;
    590595
    591596    // auto_details
     
    609614
    610615        patname = href_path.replace("javascript\:", "");
    611        if(typeof old_path == "undefined") old_path = patname;
     616        if (typeof old_path == "undefined") old_path = patname;
    612617        pt = pt.split(",");
    613618        tsz = pt[pt.length - 1];
     
    20402045      jQuery('#derivativeSwitchBox .switchCheck').css('visibility', 'hidden');
    20412046      if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") {
    2042         jQuery('#derivativeChecked' + options.pictureSelType).css('visibility', 'visible');
     2047        //  jQuery('#derivativeChecked' + options.pictureSelType).css('visibility', 'visible');
    20432048        spans = jQuery("#derivativeChecked" + options.pictureSelType).next();
    20442049        spans.addClass("linkAutosize");
    20452050        spans.find("span").addClass("auto_details");
    20462051      } else {
    2047         jQuery('#derivativeChecked' + options.pictureDeriv).css('visibility', 'visible');
     2052        //  jQuery('#derivativeChecked' + options.pictureDeriv).css('visibility', 'visible');
    20482053      }
    20492054      pictureDeriv = options.pictureDeriv;
     
    22582263
    22592264
    2260   });                                                                                                     // ready
     2265  });                                                                                                         // ready
    22612266
    22622267
Note: See TracChangeset for help on using the changeset viewer.