Changeset 16594


Ignore:
Timestamp:
Jul 10, 2012, 4:19:42 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4

File:
1 edited

Legend:

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

    r16589 r16594  
    18721872          n++;
    18731873        });
    1874 
    1875 
    18761874        if (n > pt.length - 1) n = pt.length - 1; // format le plus grand
    18771875        if (n < 0) n = 0; // format le plus grand
    1878 
    1879 
    1880 
    18811876        id_en_cours = pt[n][1];
    18821877        last_map = pt[n][5];
    18831878        var theImg = document.getElementById("theMainImage");
    1884 
    18851879        if (id3.length > 0) {
    18861880          if (theImg.useMap.match(RegExp("map", "gi"))) return true;
    18871881              changeImgSrc(id_en_cours, last_map, "Autosize");
    18881882        } else {
    1889 
    18901883          new_html = '<br /><span class="switchCheck" id="derivativeCheckedAutosize" style="visibility:hidden" >&#x2714; </span>';
    18911884          new_html += '<a href="javascript:changeImgSrc(\'' + id_en_cours + '\', \'' + last_map + '\', \'Autosize\') ">';
     
    19091902        }
    19101903
    1911 
    1912         if (nu_img == "") nu_img = 7;
    19131904      }
    19141905      return true;
    19151906
    1916       p2 = jQuery("#infoSwitcher").css("display");
    1917       Set_Map(p2);
    1918       jQuery(jQuery('.debug').get(nu_img)).trigger('ON');
    1919       Autosize_resize(true);
    19201907    };
    19211908
     
    20612048      }
    20622049      jQuery("#theMainImage").height(jQuery("#theMainImage").width() / rapport);
    2063 
    20642050      Zone_image.zoom = (Zone_image.image.height / Zone_image.height_init);
    2065  
    20662051      zoom_cl = parseInt(100 * Zone_image.zoom);
    2067       zoom_cl = Zone_image.zoom;
    20682052      jQuery('#zoom ').val(zoom_cl);
    20692053
Note: See TracChangeset for help on using the changeset viewer.