Changeset 18925 for extensions/Autosize/js
- Timestamp:
- Nov 4, 2012, 12:03:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r18823 r18925 630 630 .error(function (e) { 631 631 if (!this.complete) { 632 src = jQuery(this).attr("src").replace("./_data/i/", "",1);632 src = jQuery(this).attr("src").replace("./_data/i/", "", 1); 633 633 jQuery.ajax({ 634 634 type: 'GET', 635 url: 'i.php?' + 635 url: 'i.php?' + src + "&ajaxload=true", 636 636 dataType: 'json', 637 637 success: (function (data) { … … 641 641 }); 642 642 643 643 644 644 645 645 } … … 648 648 .bind("Finish", function (e, data) { 649 649 if (typeof imageInfos_id == "undefined") return; 650 650 651 651 }) 652 652 .bind("ON", function (e, data) { … … 660 660 return; 661 661 } 662 if (data.src) { 663 if (typeof imageInfos_id == "undefined") return;664 if (data.src.match(RegExp(options.pictureDeriv.substr(0, 2) + ".jpg", "gi"))) { 665 // Autosize_resize(true, options);662 if (data.src) { 663 if (typeof imageInfos_id == "undefined") return; 664 if (data.src.match(RegExp(options.pictureDeriv.substr(0, 2) + ".jpg", "gi"))) { 665 // Autosize_resize(true, options); 666 666 } 667 667 } … … 965 965 //jQuery(theMainImage_id).height(Zone_image.image.height); 966 966 } else { 967 if (options.imageAutosize==false)968 if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") {969 jQuery(theMainImage_id).height(Zone_image.image.height);970 jQuery(theMainImage_id).width(Zone_image.image.width);971 972 } else {973 jQuery(theMainImage_id).height(Zone_image.image.height);974 jQuery(theMainImage_id).width(Zone_image.image.width);975 }967 if (options.imageAutosize == false) 968 if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") { 969 jQuery(theMainImage_id).height(Zone_image.image.height); 970 jQuery(theMainImage_id).width(Zone_image.image.width); 971 972 } else { 973 jQuery(theMainImage_id).height(Zone_image.image.height); 974 jQuery(theMainImage_id).width(Zone_image.image.width); 975 } 976 976 977 977 … … 1009 1009 url2 = this.src; 1010 1010 jQuery('#derivativeSwitchBox .switchCheck').css('visibility', 'hidden'); 1011 type = options.pictureSelType;1011 newtype = options.pictureSelType; 1012 1012 if (typeof type != "undefined" && (type == "Autosize" || type == "SelMaxi")) { 1013 1013 … … 1021 1021 options.pictureMap = typeMap; 1022 1022 options.pictureDeriv = typeSave; 1023 1024 1025 1023 document.cookie = 'picture_deriv=' + typeSave + ';path=' + COOKIE_PATH; 1026 1024 Autosize_resize(true, options); 1025 if (typeof type != "undefined" && (type == "Autosize" || type == "SelMaxi")) { 1026 1027 } else { 1028 jQuery("#bp_img_cla").attr("src", "./plugins/Autosize/icons/button-maximize.png"); 1029 jQuery("#bp_cla span").text(""); 1030 } 1027 1031 }) 1028 1032 .live("ON", function (e) { … … 2196 2200 2197 2201 2198 }); // ready2202 }); // ready 2199 2203 2200 2204
Note: See TracChangeset
for help on using the changeset viewer.