Changeset 7542
- Timestamp:
- Nov 1, 2010, 5:58:25 PM (13 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/conflit.js
r7538 r7542 1 1 //==== autosize remplace $(... avec jQuery( ==== 2 2 var d1 = 0; 3 var init_tb = 0; 4 5 jQuery(window).load(function () { 6 if (jQuery("#theImage").css("position") == "relative") { 7 //==== compatibilité Gally/LLGBO === 8 //--- passage relative ==> static ===/ 9 jQuery("#theImage").css("position", "static"); 10 } 11 tp = typeof (Browser); 12 if (tp !="undefined") 13 if (Browser.loaded == true) { 14 n = Browser; 15 } 16 }); 17 18 19 function $(element, nc) { 3 var init_tb = 0; 4 5 6 function $(element, nc) { 7 return conflit(element, nc); 8 } 9 10 jQuery(document).ready( 11 12 function (jQuery) { 13 14 15 16 tpj = jQuery("#pamoorama"); 17 if (tpj.length > 0) { } 18 jQuery(window).load(function () { 19 if (jQuery("#theImage").css("position") == "relative") { 20 //==== compatibilité Gally/LLGBO === 21 //--- passage relative ==> static ===/ 22 jQuery("#theImage").css("position", "static"); 23 } 24 25 26 tp = typeof (Browser); 27 if (tp != "undefined") 28 if (Browser.loaded == true) { 29 n = Browser; 30 } 31 function $(element, nc) { 32 return conflit(element, nc); 33 } 34 35 }); 36 37 }) 38 ; 39 function conflit(element, nc) { 20 40 //============== détection framework ================== 21 41 var tp1 = typeof (MooTools); … … 203 223 } 204 224 //========== test jQuery ? ============== 205 225 if (tpe == "string") 226 if (element.match(RegExp("^#", "g")) ) { 227 return new_element; 228 } 206 229 if (jq.match(RegExp("^#", "g")) || jq == "html") { 207 230 return new_element; -
extensions/Autosize/main.inc.php
r7538 r7542 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 1.2. 94 Version: 1.2.0 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 … … 22 22 23 23 //add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),40 ); 24 add_event_handler('loc_begin_index', array(&$autosize_controler, 'cl_autosize_script'),51 ); 24 25 //---- Categorie ---- 26 //add_event_handler('loc_begin_index', array(&$autosize_controler, 'cl_autosize_script'),51 ); 27 25 28 //add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),40 ); 26 29
Note: See TracChangeset
for help on using the changeset viewer.