Changeset 19764 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Jan 3, 2013, 7:38:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r19166 r19764 472 472 //========================================================================================== 473 473 init_gen(); 474 475 476 474 }); 477 475 //__________________window.onload_________________ … … 513 511 options.valide = jQuery(".Autosize").css("display") != "none"; 514 512 options.marge_haute = jQuery(".Autosize").Get_Val_int(jQuery(".Autosize").css("top")); 515 options.marge_basse = Math.max(513 options.marge_basse = Math.max( 516 514 jQuery(".Autosize").Get_Val_int(jQuery(".Autosize").css("bottom")), 517 515 options.marge_basse … … 945 943 946 944 //jQuery(theMainImage_id).height(Zone_image.image.height); 945 } else if (Type_Img == "panorama") { 946 // jQuery("#pamoorama").width(img_finale.width); 947 // jQuery("#pamoorama").height(img_finale.height); 948 949 950 951 // jQuery("#theImage img.simple_panorama").panorama(asp_options); 947 952 } else { 948 953 if (options.imageAutosize == false) 949 954 if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") { 950 jQuery(theMainImage_id).height(Zone_image.image.height 955 jQuery(theMainImage_id).height(Zone_image.image.height); 951 956 jQuery(theMainImage_id).width(Zone_image.image.width); 952 953 jQuery(theMainImage_id).css("margin-top", options.marge_haute 957 958 jQuery(theMainImage_id).css("margin-top", options.marge_haute); 954 959 955 960 } else { … … 1131 1136 * pamoorama 1132 1137 ******************************/ 1133 1138 1139 1134 1140 jQuery("#pamoorama").bind("on", function () { alert($(this).text()); }); 1135 1141 jQuery("#pamoorama").bind("on", function (e) { … … 1753 1759 if (!options.check_desc_v) 1754 1760 options.marge_bottom_2 = 0; 1755 1761 1756 1762 1757 1763 marge_bottom = options.marge_bottom_2 + options.marge_bottom; … … 1866 1872 infos_theImage = jQuery(theMainImage_id).infos(); 1867 1873 infos_the_page = jQuery("#the_page").infos(); 1874 if (typeof img_finale == "undefined") img_finale = { width: Zone_image.image.width, height: Zone_image.image.height }; 1875 1868 1876 img_finale.height = infos_theImage.height; 1869 1877 break … … 1939 1947 mxi = Math.ceil(Zone_image.image.height + Zone_image.marges.height); 1940 1948 Zone_image.container.height = Math.max(Zone_image.container.height, mxi); 1949 } else { 1950 1951 1941 1952 } 1942 1953 img_finale = { width: Zone_image.image.width, height: Zone_image.image.height }; 1954 1943 1955 return true; 1944 1956 } … … 2274 2286 2275 2287 2276 }); // ready2288 }); // ready 2277 2289 2278 2290
Note: See TracChangeset
for help on using the changeset viewer.