Changeset 19909
- Timestamp:
- Jan 6, 2013, 4:41:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r19859 r19909 744 744 745 745 jQuery("#theImage").resize(function (e) { 746 746 nu_img = 0; 747 747 }); 748 748 … … 828 828 theImg = document.getElementById(theMainImage_id.replace("#", "")); 829 829 if (theImg) { 830 // options.pictureDeriv = retour.pictureDeriv; 831 options.pictureSelType = retour.pictureSelType; 830 // options.pictureDeriv = retour.pictureDeriv; 831 if (this.name) { 832 options.pictureSelType = this.name; 833 } else { 834 options.pictureSelType = retour.pictureSelType; 835 } 832 836 options.pictureDeriv = retour.pictureDeriv; 833 837 options.pictureMap = retour.pictureDeriv; 834 835 if (this.name) {836 options.pictureSelType = this.name;837 // n = Get_dimensions(true, options);838 } else {839 840 }841 838 Autosize_resize(true, options); 842 839 } … … 1472 1469 if (options.imgSrc.match(RegExp(imgSrc, "gi"))) 1473 1470 options.imgSrc = imgSrc; 1474 1471 // dimension image 1475 1472 img_width = IMg.width; 1476 1473 img_height = IMg.height; … … 1493 1490 if (typeof Zone_image.src == "undefined") Zone_image.src = " "; 1494 1491 1495 identique = Zone_image.src.match(RegExp(imgSrc , "gi"));1492 identique = Zone_image.src.match(RegExp(imgSrc.replace("./",""), "gi")); 1496 1493 if (identique) return; 1497 1494 href_path = get_href(IMg.pictureDeriv); 1498 jQuery(".linkAutosize").attr("href", "javascript:" + href_path); 1495 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"); 1499 } 1499 1500 theImg = document.getElementById(theMainImage_id.replace("#", "")); 1500 1501 … … 1505 1506 } else { 1506 1507 last_id = IMg.pictureDeriv; 1507 eval(href_path);1508 // changeImgSrc(imgSrc.replace("./",""), last_id, IMg.pictureMap, options.pictureSelType);1508 // eval(href_path); 1509 changeImgSrc(imgSrc.replace("./", ""), last_id, IMg.pictureMap, options.pictureSelType); 1509 1510 } 1510 1511 … … 2293 2294 2294 2295 2295 }); // ready2296 }); // ready 2296 2297 2297 2298
Note: See TracChangeset
for help on using the changeset viewer.