Changeset 7542 for extensions/Autosize/js/conflit.js
- Timestamp:
- Nov 1, 2010, 5:58:25 PM (13 years ago)
- File:
-
- 1 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;
Note: See TracChangeset
for help on using the changeset viewer.