Changeset 19936
- Timestamp:
- Jan 7, 2013, 12:15:22 PM (11 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r19909 r19936 510 510 //===== marges suplémentaires en fonction theme === 511 511 options.valide = jQuery(".Autosize").css("display") != "none"; 512 options.marge_haute = jQuery(".Autosize").Get_Val_int(jQuery(" .Autosize").css("top"));512 options.marge_haute = jQuery(".Autosize").Get_Val_int(jQuery("#form_autosize_picture").css("top")); 513 513 options.marge_basse = Math.max( 514 jQuery(".Autosize").Get_Val_int(jQuery(" .Autosize").css("bottom")),514 jQuery(".Autosize").Get_Val_int(jQuery("#form_autosize_picture").css("bottom")), 515 515 options.marge_basse 516 516 ); 517 517 518 options.marge_gauche = jQuery(".Autosize").Get_Val_int(jQuery(" .Autosize").css("left"));519 options.marge_droite = jQuery(".Autosize").Get_Val_int(jQuery(" .Autosize").css("right"));518 options.marge_gauche = jQuery(".Autosize").Get_Val_int(jQuery("#form_autosize_picture").css("left")); 519 options.marge_droite = jQuery(".Autosize").Get_Val_int(jQuery("#form_autosize_picture").css("right")); 520 520 521 521 jQuery(".Autosize").hide(); … … 831 831 if (this.name) { 832 832 options.pictureSelType = this.name; 833 } else { 834 options.pictureSelType = retour.pictureSelType; 835 } 833 spans = jQuery("#derivativeChecked" + this.name).next(); 834 if(retour.pictureSelType != this.name) 835 spans.attr("href", "javascript:" + "ChangeImgSrc('" + retour.source + "," + retour.pictureDeriv + "," + retour.pictureMap + "," + this.name + "')"); 836 } 837 options.pictureSelType = retour.pictureSelType; 836 838 options.pictureDeriv = retour.pictureDeriv; 837 839 options.pictureMap = retour.pictureDeriv; 838 Autosize_resize(true, options); 840 Save_cookies(options); 841 setTimeout("Autosize_resize(false, options)", 500); 842 // Autosize_resize(true, options); 839 843 } 840 844 }); … … 888 892 ***************************/ 889 893 Autosize_resize = function (force, parametres) { 890 894 if (!force) { 895 cookis = Get_cookies(); 896 if (cookis.pictureSelType != options.pictureSelType) { 897 n = 0; 898 } 899 } 891 900 nAuto = Get_dimensions(true, options); 892 901 … … 1394 1403 v_pictureDeriv = vn[0]; v_imgSrc = vn[1]; v_width = parseInt(vn[2]); v_height = parseInt(vn[3]); 1395 1404 size_derive = { w: v_width, h: v_height }; 1396 if (v_pictureDeriv == options.pictureSelType || v_pictureDeriv == "Original") {1405 if (v_pictureDeriv == options.pictureSelType) { 1397 1406 maxi_size = size_derive; 1398 1407 maxi_size.idx = n; … … 1462 1471 //===== calcul Image === 1463 1472 if (typeof imageInfos_id == "undefined") return; 1464 Calcul_Image(); 1473 Calcul_Image(); // image en cours 1465 1474 options.theImageMargeZone = Zone_image.marges; 1466 1475 if (Type_Img != 'charlie') { … … 1490 1499 if (typeof Zone_image.src == "undefined") Zone_image.src = " "; 1491 1500 1492 identique = Zone_image.src.match(RegExp(imgSrc.replace("./", ""), "gi"));1501 identique = Zone_image.src.match(RegExp(imgSrc.replace("./", ""), "gi")); 1493 1502 if (identique) return; 1494 1503 href_path = get_href(IMg.pictureDeriv); 1495 1504 if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") { 1496 jQuery(".linkAutosize").attr("href", "javascript:" + href_path); 1497 nobj = jQuery(".linkAutosize"); 1498 nlien = jQuery(".linkAutosize").attr("href"); 1505 spans = jQuery("#derivativeChecked" + options.pictureSelType).next(); 1506 spans.attr("href", "javascript:" + href_path); 1499 1507 } 1500 1508 theImg = document.getElementById(theMainImage_id.replace("#", "")); … … 2294 2302 2295 2303 2296 }); // ready2304 }); // ready 2297 2305 2298 2306 -
extensions/Autosize/js/autosizeDetect.js
r19910 r19936 46 46 retval2= jQuery.cookie('picture_deriv'); 47 47 if (retval == "ok" && retval2) return; 48 48 // 49 49 jQuery.cookie('autosize_reload', "ok", { path: COOKIE_PATH }); 50 if (reload=="true") { 50 if (reload == "true") { 51 document.location = document.location ; 52 53 return ; 51 54 //document.location.reload(false); // from cache 52 55 try { 56 53 57 54 58 var retval = document.location.reload(true); -
extensions/Autosize/js/autosize_ajax.js
r18975 r19936 54 54 derivatives.elements = params.ids; 55 55 derivatives.total += params.src.length; 56 57 58 59 60 56 jQuery("body").append("<div style='position:abosolute;left:-200;top:-200'>"); 61 57 if (derivatives.elements.length) {
Note: See TracChangeset
for help on using the changeset viewer.