Changeset 18737 for extensions/Autosize


Ignore:
Timestamp:
Oct 25, 2012, 4:36:50 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (prechargement)

Location:
extensions/Autosize/js
Files:
2 edited

Legend:

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

    r18735 r18737  
    608608         .error(function (e) {
    609609           if (!this.complete) {
    610              jQuery(this).hide();
     610             src = jQuery(this).attr("src").replace("./_data/i/","",1);
     611             jQuery.ajax({
     612               type: 'GET',
     613               url: 'i.php?' +  src + "&ajaxload=true",
     614               dataType: 'json',
     615               success: (function (data) {
     616                 j = data;
     617               })
     618
     619             });
     620
     621         
    611622
    612623           }
     
    13161327        options.theImageMargeZone = Zone_image.marges;
    13171328        if (Type_Img != 'charlie') {
    1318           if (options.pictureSelType != "SelMaxi" && options.pictureSelType != "Autosize" ) {
    1319           return ;
     1329          if (options.pictureSelType != "SelMaxi" && options.pictureSelType != "Autosize") {
     1330            return;
    13201331          } else {
    13211332            IMg = Get_Maxi(Zone_image.image);
     
    21612172
    21622173
    2163   });                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     // ready
     2174  });                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      // ready
    21642175
    21652176
  • extensions/Autosize/js/autosize_ajax.js

    r18735 r18737  
    1919    if (success) {
    2020      jQuery("#theMainImage").height(params.height[derivatives.done]);
     21      jQuery("#theMainImage").width(params.width[derivatives.done]);
     22
    2123      jQuery("#theMainImage").show();
    2224      jQuery("#theMainImage").trigger("ON", [{ nb: derivatives.total - derivatives.done, total: derivatives.total, done: derivatives.done,status:"ok",src:data.url}]);
Note: See TracChangeset for help on using the changeset viewer.