Changeset 18723 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Oct 23, 2012, 12:08:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r18716 r18723 591 591 theMainImage_st = false; 592 592 jQuery("#theMainImage").error(function (e) { 593 jQuery(".infos").show();594 // alert(this.src + ' Image does not exist !!');595 });596 $("#theMainImage").bind('ON', function (event, param1) {597 598 });599 600 jQuery("#theMainImage").live("ON", function (e, data) {601 d = (new Date()).getTime();602 jQuery("#theMainImage").attr("src", this.src + "?" + data.total);603 // jQuery("#infos_succes").text(data.done + " / " + data.total);604 593 jQuery.noop(); 605 if (data.nb == 0) { 606 // jQuery(".infos").empty(); 607 // jQuery(".infos").remove(); 608 if(typeof imageInfos_id == "undefined") return ; 609 610 Autosize_resize(true, options); 611 612 613 } 614 // alert(this.src + ' Image does not exist !!'); 594 }); 595 jQuery("#theMainImage").bind("ON", function (e, data) { 596 if (!data.status != "ok") { 597 return; 598 } 599 600 if (data.done == 1) 601 jQuery("#theMainImage").attr("src", nofile[data.done].file); 602 jQuery.noop(); 603 604 }); 605 jQuery("#theMainImage").bind("Finish", function (e, data) { 606 607 jQuery("#theMainImage").attr("src", nofile[1].file); 608 if (typeof imageInfos_id == "undefined") return; 609 Autosize_resize(true, options); 610 615 611 }); 616 612 … … 909 905 + " IMG: " + img_finale.width 910 906 + " X " + img_finale.height 907 + " mgw : " + Zone_image.marges.width 911 908 , "->") 912 909 }); … … 1063 1060 } 1064 1061 //__________________ Wait_pamoorama ______________________ 1062 jQuery(".pwg-icon-clock-minus, .pwg-icon-clock-plus").click(function (i) { 1063 n = window.myPamoorama; 1064 n = this; 1065 }) 1065 1066 1066 1067 Wait_pamoorama_time = function () { … … 1289 1290 Select_Image = function () { 1290 1291 var pt = options.liste_type; 1292 1293 1291 1294 if (pt.length > 0) { 1292 1295 //===== calcul Image === … … 1295 1298 options.theImageMargeZone = Zone_image.marges; 1296 1299 if (Type_Img != 'charlie') { 1297 if (options.pictureSelType != "SelMaxi" && options.pictureSelType != "Autosize" ) {1300 if (options.pictureSelType != "SelMaxi" && options.pictureSelType != "Autosize" && Type_Img != 'pamoorama') { 1298 1301 IMg = Get_Maxi(Zone_image.image_init); 1299 1302 } else { … … 1485 1488 1486 1489 /****************************************/ 1487 if (typeof imageInfos_id == "undefined") return;1488 infos_imageInfos = jQuery(imageInfos_id).infos( true); // information1489 infos_theMainImage = jQuery(theMainImage_id).infos( true); // Image1490 if (typeof imageInfos_id == "undefined") return; 1491 infos_imageInfos = jQuery(imageInfos_id).infos({ absolute: true }); // information 1492 infos_theMainImage = jQuery(theMainImage_id).infos({ absolute: true }); // Image 1490 1493 // commentContent 1491 1494 // copyright 1495 1492 1496 1493 1497 … … 1498 1502 infos_theImage = jQuery(theImage_id).infos(true); // container 1499 1503 infos_window = jQuery(window).infos(true); // window 1504 w = infos_theImage.general.marges.width 1500 1505 1501 1506 container = { … … 1559 1564 //=============================================================== 1560 1565 retrait_img.width = Math.ceil(infos_theMainImage.general.marges.width); // borderwidth+padding 1566 retrait_img.width = Math.ceil(infos_theImage.general.marges.width); // borderwidth+padding 1561 1567 retrait_img.width += Math.ceil(options.marges_llgbo || 0); 1562 1568 retrait_img.width += 2; … … 1588 1594 } else if (Type_Img == "pamoorama") { 1589 1595 if (height_theMainImage > container.height_interne) { 1590 1596 n = options.pictureSelType; 1591 1597 } 1592 1598 } else { … … 2133 2139 2134 2140 2135 }); // ready2141 }); // ready 2136 2142 2137 2143
Note: See TracChangeset
for help on using the changeset viewer.