Changeset 22467 for extensions
- Timestamp:
- May 2, 2013, 5:56:33 PM (12 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r22367 r22467 294 294 <script type='text/javascript' src='plugins/Autosize/js/autosizeDetect.js'></script> 295 295 <script type='text/javascript' src='plugins/Autosize/js/autosize.cookie.js'></script> 296 <script type='text/javascript' src='themes/default/js/plugins/jquery.ajaxmanager.js'></script>";296 "; 297 297 $set_miniature .= "<script type='text/javascript' src='plugins/Autosize/js/autosize_ajax.js' id='autosize_ajax' > </script >"; 298 298 $set_var = "<script type='text/javascript'>\n var COOKIE_PATH = '".cookie_path()."';\n"; … … 1005 1005 //======================================================================================= 1006 1006 if($nosrc!=true ){ 1007 $script_miniatures = " <script type='text/javascript' src='".PHPWG_ROOT_PATH."themes/default/js/plugins/jquery.ajaxmanager.js' ></script>";1007 $script_miniatures = ""; 1008 1008 $script_miniatures .= "<script type='text/javascript' src='".PHPWG_ROOT_PATH."plugins/Autosize/js/autosize_ajax.js' id='autosize_ajax' > </script >"; 1009 1009 $nosrc=true ; -
extensions/Autosize/js/Affiche_script.js
r22367 r22467 805 805 // REPONSE TRIGGER 806 806 // =========================================================== 807 jQuery( '#ret_autosize').live('ON', function (e) {807 jQuery(document).on('ON','#ret_autosize', function (e) { 808 808 if (nu_img == "") nu_img = 8; 809 809 jQuery(jQuery('.debug').get(nu_img)).trigger('ON'); … … 825 825 // jQuery("#llgbo").trigger("ON"); 826 826 // ================================== 827 jQuery( llgbo_id).live('ON', function (e) {827 jQuery(window).on('ON',llgbo_id, function (e) { 828 828 n_id = this; 829 829 infos_llgbo = jQuery(llgbo_id).infos(); … … 845 845 // jQuery("#mapPicture").trigger("ON"); 846 846 // ============================== 847 jQuery( "#mapPicture").live('ON', function (e) {847 jQuery(window).on('ON',"#mapPicture", function (e) { 848 848 p2 = jQuery("#infoSwitcher").infos(); 849 849 }); … … 851 851 // jQuery("#map").trigger("ON"); 852 852 // ============================== 853 jQuery( "#map").live('ON', function (e) {853 jQuery(window).on('ON', "#map", function (e) { 854 854 p2 = jQuery("#map").infos(); 855 855 }); … … 857 857 // jQuery(theImage_id).trigger("ON"); 858 858 // =================================== 859 jQuery( "#imageInfos").live('on', function (e) {859 jQuery(window).on('ON', "#imageInfos", function (e) { 860 860 target = e.target.id; 861 861 }); … … 864 864 // jQuery(theImage_id).trigger("ON"); 865 865 // =================================== 866 jQuery( theImage_id).live('ON', function (e) {866 jQuery(window).on('ON', theImage_id, function (e) { 867 867 target = e.target.id; 868 868 … … 871 871 }); 872 872 873 jQuery("#theMainImage"). load(function (e) {873 jQuery("#theMainImage").on("load",function (e) { 874 874 if (!e.target.src) return; 875 875 if (e.target.src.match(RegExp("gif", "gi"))) { … … 878 878 879 879 }); 880 881 880 882 jQuery("#theMainImage").resize(function (e) { 881 883 … … 890 892 891 893 // ================================================================= 892 jQuery(document). live('gallyInterfaceReady', function (e) {894 jQuery(document).on('on','gallyInterfaceReady', function (e) { 893 895 i = jQuery(this).text(); 894 896 jQuery(this).trigger('ON'); … … 921 923 // jQuery("#theImageAndInfos").trigger("ON"); 922 924 // =========================================== 923 jQuery( "#theImageAndInfos").live('ON', function (e) {925 jQuery(window).on('ON', "#theImageAndInfos", function (e) { 924 926 infos_theImageAndInfos = jQuery("#theImageAndInfos").infos(); 925 927 // setTimeout(function () { Autosize_resize(true) }, 100); … … 1037 1039 nauto = Get_dimensions(true, parametres); 1038 1040 if (nauto == "Wait") { 1039 setTimeout(function (force, parametres) { Autosize_resize(force, parametres); }, 100);1041 setTimeout(function (force, parametres) { Autosize_resize(force,options); }, 100); 1040 1042 return; 1041 1043 } … … 1190 1192 mypanorama = window.myPamoorama; 1191 1193 if (mypanorama) { 1192 jQuery( mypanorama).live('ON', function (e) {1194 jQuery(window).on('ON', mypanorama, function (e) { 1193 1195 jQuery(jQuery('.debug').get(1)).trigger('ON'); 1194 1196 Autosize_resize(true, options); … … 1199 1201 // jQuery(theImage_id).trigger("Start_right"); 1200 1202 // =============================================== 1201 jQuery( mypanorama).live('Start_right', function (e) {1203 jQuery(window).on('Start_right', mypanorama, function (e) { 1202 1204 if (typeof Zone_image == "undefined") return 1203 1205 test_w = window.myPamoorama.autoSlideFx.to; … … 1214 1216 // jQuery(theImage_id).trigger("Start_left"); 1215 1217 // =============================================== 1216 jQuery( mypanorama).live('Start_left', function (e) {1218 jQuery(window).on('Start_left', mypanorama, function (e) { 1217 1219 if (typeof Zone_image == "undefined") return 1218 1220 jQuery(theImage_id).show(0); … … 1823 1825 if (Type_Img != "map" && Type_Img != "iframe") 1824 1826 if (Select_Image() == "Wait") { 1825 return "Wait"; 1827 if (!Zone_image.src.match("error")) 1828 return "Wait"; 1826 1829 } 1827 1830 useMap = options.pictureSelType; … … 2024 2027 * DEBUG .... 2025 2028 **************************************************************************/ 2026 /* 2027 * if (DEBUG_autosize.match("true",gi)) { for (var i = 0; i < 10; i++) {2028 *jQuery('#adddebugs').click(); } jQuery(jQuery('.debug').get(i -2029 *1)).click(); }2030 */2029 /**/ 2030 if (DEBUG_autosize.match(new RegExp( "true","gi") )) { for (var i = 0; i < 10; i++) { 2031 jQuery('#adddebugs').click(); } jQuery(jQuery('.debug').get(i - 2032 1)).click(); } 2033 2031 2034 2032 2035 // Custom Event, ON to turn on a debug. 2033 jQuery( '.debug').live('ON', function (e) {2036 jQuery(document).on('ON','.debug', function (e) { 2034 2037 2035 2038 nu_img = jQuery(this).text(); … … 2040 2043 2041 2044 // On Click = debugs On 2042 jQuery( '.debug').live('click', function (e) {2045 jQuery(document).on('click','.debug', function (e) { 2043 2046 i = jQuery(this).text(); 2044 2047 jQuery(this).trigger('ON'); … … 2046 2049 2047 2050 // Custom Event, Turn off a debug 2048 jQuery('.debug'). live('OFF', function (e) {2051 jQuery('.debug').on('OFF', '.debug', function (e) { 2049 2052 jQuery(this).removeClass('debugOn'); 2050 2053 }); 2051 2054 2052 2055 // on Double Click, remove the debug from the DOM 2053 jQuery('.debug'). live('dblclick', function () {2056 jQuery('.debug').on('dblclick', '.debug', function (e) { 2054 2057 jQuery(this).fadeOut(function () { jQuery(this).remove(); }); 2055 2058 }); -
extensions/Autosize/js/JScript.js
r22360 r22467 22 22 23 23 jQuery(document).ready(function (jQuery) { 24 jQuery(window). load(function () {24 jQuery(window).on("load", function () { 25 25 if (jQuery("#scrolltotop").length == 0) 26 26 jQuery('#scrolltobottom').before('<div id="scrolltotop" ><a title="Revenir en haut de la page" href="#"></a></div>'); -
extensions/Autosize/js/autosizeDetect.js
r22360 r22467 1 1 jQuery(document).ready(function (jQuery) { 2 jQuery(window). load(function (e) {2 jQuery(window).on("load", function (e) { 3 3 var myWidth = 0, myHeight = 0; 4 4 if (typeof (window.innerWidth) == 'number') { -
extensions/Autosize/js/autosize_ajax.js
r22191 r22467 56 56 jQuery("body").append("<div style='position:abosolute;left:-200;top:-200'>"); 57 57 if (derivatives.elements.length) { 58 if (derivatives.total - derivatives.done > 0)59 setTimeout("Set_images(params.src)", 500 * (derivatives.total - derivatives.done));58 //if (derivatives.total - derivatives.done > 0) 59 // setTimeout(function () { Set_images(params.src); }, 500 * (derivatives.total - derivatives.done)); 60 60 } 61 61 } //ready -
extensions/Autosize/js/conflit.js
r22360 r22467 174 174 jQuery(document).ready( 175 175 function (jQuery) { 176 jQuery(window). load(function () {176 jQuery(window).on("load", function () { 177 177 //============================================================== 178 178 -
extensions/Autosize/main.inc.php
r22360 r22467 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 3.1. 34 Version: 3.1.4 5 5 Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448 -
extensions/Autosize/template/picture.tpl
r19764 r22467 29 29 30 30 {if $ASP.width} 31 jQuery(window). load(function () {ldelim}31 jQuery(window).on("load", function () {ldelim} 32 32 asp_options ={ldelim} }; 33 33 if(typeof $("#imageToolBar") !="undefined" )
Note: See TracChangeset
for help on using the changeset viewer.