Changeset 18725 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Oct 23, 2012, 3:04:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r18724 r18725 106 106 infos_pamoorama = jQuery("#pamoorama").infos({ absolute: true }); 107 107 108 } else if (jQuery("#map").length ) {108 } else if (jQuery("#map").length > 0 || jQuery("#mapPicture").length > 0) { 109 109 Type_Img = "map"; 110 110 } else if (jQuery("#Panorama").length) { … … 546 546 547 547 548 548 549 jQuery('#derivativeSwitchBox .switchCheck').css('visibility', 'hidden'); 549 550 jQuery('#derivativeChecked' + options.pictureSelType).css('visibility', 'visible'); … … 885 886 n = Get_dimensions(true, options); 886 887 888 if (n == false) return; 889 887 890 Save_cookies(options); 888 891 if (options.pictureSelType != "Autosize" && options.pictureSelType != "SelMaxi") { … … 891 894 } 892 895 infos_theImage = jQuery(theImage_id).infos(true); 893 if (typeof img_finale == "und ifined") img_finale = { width: Zone_image.image.width, height: Zone_image.image.height };896 if (typeof img_finale == "undefined") img_finale = { width: Zone_image.image.width, height: Zone_image.image.height }; 894 897 if (img_finale.width && (img_finale.width != Zone_image.image.width || img_finale.height != Zone_image.image.height)) { 895 896 898 img_finale = { width: Zone_image.image.width, height: Zone_image.image.height }; 897 899 } … … 1209 1211 //=========================================== 1210 1212 Set_Map = function (nds) { 1211 p0 = jQuery("#map"). position();1213 p0 = jQuery("#map").offset(); 1212 1214 if (!p0) return; 1213 1214 infos_map = jQuery("#map").infos(); 1215 // if (infos_map.width == (Zone_image.container.width - p0.left)) return ; 1216 nds = jQuery("#imageInfos").css("display"); 1217 if (nds != "none") { 1218 p2 = jQuery("#infoSwitcher").infos(); 1219 p0.left += 35; 1220 } 1221 jQuery("#map").width(Zone_image.image.width); 1222 jQuery("#map").css({ height: Zone_image.image.height + "px" }); 1223 1215 infos_mapPicture = jQuery("#mapPicture").infos({ absolute: true }); 1216 infos_theImage = jQuery("#theImage").infos({ absolute: true }); 1217 jQuery("#map").removeAttr("height"); 1218 jQuery("#map").removeAttr("width"); 1219 jQuery("#map").width(infos_theImage.width - (infos_mapPicture.width)); 1220 jQuery("#map").height(jQuery(window).height()-infos_theImage.top-infos_theImage.general.marges.height); 1224 1221 return true; 1225 1222 } … … 1493 1490 // commentContent 1494 1491 // copyright 1495 1492 1496 1493 1497 1494 … … 1660 1657 options.theImageWidth = new_dim.width; 1661 1658 options.theImageHeight = new_dim.height; 1662 1663 1664 1659 if (options.theImageBottom < 0) { 1665 1660 options.theImageBottom = 0; 1666 1661 } 1662 1663 1664 1667 1665 var chk = eval("options." + user_status + "_enabled"); 1668 1666 if (chk == "") { return; } 1669 1667 1670 Select_Image(); 1671 infos_theMainImage = jQuery(theMainImage_id).infos(); 1668 if (Type_Img == "img") 1669 Select_Image(); 1670 infos_theMainImage = jQuery(theMainImage_id).infos({ absolute: true }); 1672 1671 Zone_image.src = infos_theMainImage.src; 1673 1672 useMap = options.pictureSelType; … … 2139 2138 2140 2139 2141 }); // ready2140 }); // ready 2142 2141 2143 2142
Note: See TracChangeset
for help on using the changeset viewer.