Changeset 19859 for extensions
- Timestamp:
- Jan 5, 2013, 6:28:07 PM (12 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r19844 r19859 421 421 echo $set_var ; 422 422 echo $autoscript; 423 // self::Fin_php("#411: ".$DEBUG_autosize); 423 if (!isset($_COOKIE['autosize_reload']) ){ 424 self::Fin_php("#424: ".$DEBUG_autosize); 425 } 426 // 424 427 425 428 } -
extensions/Autosize/js/Affiche_script.js
r19764 r19859 835 835 if (this.name) { 836 836 options.pictureSelType = this.name; 837 n = Get_dimensions(true, options);837 // n = Get_dimensions(true, options); 838 838 } else { 839 839 … … 904 904 return; 905 905 } 906 jQuery(theImg).width(Zone_image.image_init.width);906 // jQuery(theImg).width(Zone_image.image_init.width); 907 907 jQuery(theImg).height(Zone_image.image_init.height); 908 908 set_cl("no"); … … 916 916 img_finale = { width: Zone_image.image.width, height: Zone_image.image.height }; 917 917 } 918 r1 = Zone_image.image.width / Zone_image.image.height; 918 919 919 //====================================================== 920 920 … … 943 943 944 944 //jQuery(theMainImage_id).height(Zone_image.image.height); 945 946 947 948 949 950 951 // jQuery("#theImage img.simple_panorama").panorama(asp_options);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); 952 952 } else { 953 953 if (options.imageAutosize == false) 954 954 if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") { 955 955 jQuery(theMainImage_id).height(Zone_image.image.height); 956 jQuery(theMainImage_id).width(Zone_image.image.width);957 956 r1 = infos_theImage.width / infos_theImage.height; 957 // jQuery(theMainImage_id).width(Zone_image.image.width/r1); 958 958 jQuery(theMainImage_id).css("margin-top", options.marge_haute); 959 959 960 960 961 } else { … … 1032 1033 ******************/ 1033 1034 changeImgSrc = function (url, typeSave, typeMap, type) { 1034 1035 if (type == "Autosize" || type == "SelMaxi") { 1036 1037 } 1035 1038 if (COOKIE_PATH == type) { 1036 1039 type = options.pictureSelType; … … 1048 1051 1049 1052 url_old = jQuery("#theMainImage").attr("src"); 1050 if (url != url_old) { 1051 jQuery("#theMainImage").attr("src", url); 1052 } 1053 1053 1054 jQuery('#derivativeSwitchBox .switchCheck').css('visibility', 'hidden'); 1054 1055 if (typeof type != "undefined" && (type == "Autosize" || type == "SelMaxi")) { … … 1060 1061 jQuery.cookie('picture_sel_type', typeSave, { path: COOKIE_PATH }); 1061 1062 } 1062 1063 if (url != url_old) { 1064 jQuery("#theMainImage").attr("src", url); 1065 } 1063 1066 // jQuery("#theMainImage," + theMainImage_id + ",.preload, .next1 , ") 1064 1067 jQuery("#theMainImage").removeAttr("width height") … … 1136 1139 * pamoorama 1137 1140 ******************************/ 1138 1139 1141 1142 1140 1143 jQuery("#pamoorama").bind("on", function () { alert($(this).text()); }); 1141 1144 jQuery("#pamoorama").bind("on", function (e) { … … 1326 1329 } 1327 1330 name_src = theImg.src; 1331 stx = name_src.match(RegExp(Zone_image.src, "gi")); 1332 if (stx == null) { 1333 return false; 1334 } 1328 1335 img_init = { width: jQuery(theImg).width(), height: jQuery(theImg).height() } 1329 1336 … … 2286 2293 2287 2294 2288 }); // ready2295 }); // ready 2289 2296 2290 2297
Note: See TracChangeset
for help on using the changeset viewer.