Ignore:
Timestamp:
Apr 22, 2011, 11:55:02 AM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatiblity with gmaps(Version 1.3.0a)

File:
1 edited

Legend:

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

    r10308 r10561  
    6767var Fn;
    6868function conflit(element, nc) {
     69  if(typeof DEBUG != "boolean") DEBUG = false ;
    6970    //--- cl_conflit
    7071    if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {
     
    164165jQuery(document).ready(
    165166    function (jQuery) {
    166         jQuery(window).load(function () {
    167             //============================================================
    168             jQuery("#icon_gmaps").bind('click', function () {
    169 
    170                 jQuery('html,body').stop().scrollTop(0);
    171                 jQuery('html,body').stop().scrollLeft(0);
    172                 jQuery(".ui-widget-overlay").css("opacity", "0.75");
    173 
    174                 l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2;
    175                 h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2;
    176 
    177                 jQuery(".gmapsPopup").css("left", l1 + "px");
    178                 jQuery(".gmapsPopup").css("top", h1 + "px");
    179             })
    180             //============================================================= 
    181             //   jQuery(window).resize();
    182         });
    183         //  $ = _$2; ;
     167      jQuery(window).load(function () {
     168        //============================================================
     169        jQuery("#icon_gmaps").bind('click', function () {
     170          //jQuery("#iGMapsIconContent").dialog("open");
     171          if (Version_pwg > '2.2.0' )
     172          return;
     173          jQuery('html,body').stop().scrollTop(0);
     174          jQuery('html,body').stop().scrollLeft(0);
     175          jQuery(".ui-widget-overlay").css("opacity", "0.75");
     176
     177          l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2;
     178          h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2;
     179
     180          jQuery(".gmapsPopup").css("left", l1 + "px");
     181          jQuery(".gmapsPopup").css("top", h1 + "px");
     182        })
     183        //============================================================= 
     184        //   jQuery(window).resize();
     185      });
     186      //  $ = _$2; ;
    184187    });
    185188//=========================================================
     
    453456    state = states.join('\n');
    454457    if (state == "") {
    455 
    456         if (DEBUG == "true") {
     458     
     459        if ( DEBUG == "true") {
    457460            Fn = all_functions.join('\n');
    458461            try {
Note: See TracChangeset for help on using the changeset viewer.