Ignore:
Timestamp:
Jan 18, 2011, 5:17:36 PM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] compatibility whith GMaps


File:
1 edited

Legend:

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

    r8629 r8740  
    3737        else OS = "an unknown operating system";
    3838    }
    39 
     39    mybrowser.version =version;
     40    mybrowser.OS = OS;
    4041    mybrowser.browser = lbrowser;
    4142    return mybrowser
     
    7273function conflit(element, nc) {
    7374    //--- cl_conflit
    74     if (typeof MooTools=="undefined" && typeof  Prototype=="undefined" ) {
     75    if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {
    7576        ret_element = jQuery(element);
    7677        return ret_element;
     
    9495    }
    9596    else if (retour.match(RegExp("rv_gmaps", "gi"))) {
    96     try{
    97         ret_element = myjQuery().$Prototype(element);
    98         }
    99         catch(e)
    100         {
    101 
     97        try {
    10298            ret_element = myjQuery().$Prototype(element);
    103 
    104         }
    105     } else if (retour.match(RegExp("GMaps", "gi"))) {     
     99        }
     100        catch (e) {
     101
     102            ret_element = myjQuery().$Prototype(element);
     103
     104        }
     105    } else if (retour.match(RegExp("GMaps", "gi"))) {
    106106
    107107        ret_element = jQuery(element);
     
    492492
    493493    }
     494    if (jQuery('#browser').length > 0) {
     495        jQuery('#browser').val(browser.browser);
     496    }
    494497    if (typeof (Parent) == "undefined")
    495498        Parent = "#theImage";
     
    508511                    };
    509512                    //==== compatibilité Gally/LLGBO ===                 
    510                     jQuery(Parent).css({ position: "static" });         
     513                    jQuery(Parent).css({ position: "static" });
    511514
    512515                }
     
    543546        return a;
    544547    }
     548
     549    if (typeof ($.extend) != "function") {
     550
     551     $.extend = function (a,b) {
     552         return jQuery.extend(a, b);
     553        } ;
     554
     555 
     556     }
    545557
    546558    if (typeof ($.ajax) != "function") {
Note: See TracChangeset for help on using the changeset viewer.