Ignore:
Timestamp:
Nov 1, 2010, 5:58:25 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] fix bug with pamooramic...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/conflit.js

    r7538 r7542  
    11//==== autosize  remplace $(... avec jQuery( ====
    22var 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) {
     3var init_tb = 0;             
     4
     5
     6 function $(element, nc) {
     7                  return conflit(element, nc);
     8              }
     9
     10jQuery(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) {
    2040        //============== détection framework ==================
    2141        var tp1 = typeof (MooTools);
     
    203223        }
    204224        //========== test jQuery ? ==============
    205 
     225        if (tpe == "string")
     226            if (element.match(RegExp("^#", "g")) ) {
     227                return new_element;
     228            }
    206229        if (jq.match(RegExp("^#", "g")) || jq == "html") {
    207230            return new_element;
Note: See TracChangeset for help on using the changeset viewer.