Changeset 10561 for extensions


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

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

Location:
extensions/Autosize
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r10347 r10561  
    7171        'AUTOSIZE_PATH' => str_replace("../","",AUTOSIZE_PATH)  ,
    7272        'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS,
     73        'Version_pwg' => PHPWG_VERSION
    7374         )
    7475    );
  • extensions/Autosize/js/Affiche_script.js

    r10308 r10561  
    1 
    2 if (typeof (randomPictOpt) == "undefined") {
    3   var randomPictOpt = {
    4     fixedHeight: 100,
    5     delay: 10050,
    6     showName: "n",
    7     showComment: "n",
    8     pictures: [
    9           {
    10             'comment': '',
    11             'link': "",
    12             'name': '',
    13             'thumb': ""
    14           }         
    15                 ]
    16   };
    17 }
    181
    192
     
    643626
    644627           img_reelle.width = parseInt(img_reelle.width);
    645 
    646            if (img_reelle.width < mini_width) return true;
     628           jQuery(Cadre).width(mini_width);
     629           if (img_reelle.width < mini_width) {
     630             jQuery(Cadre).width(mini_width);
     631             return true;
     632
     633           }
    647634
    648635           img_reelle.height = parseInt(img_reelle.height);
     
    902889           }
    903890           //=== cadre = theImage
    904            jQuery(Cadre).css({ marginLeft: "auto"});
     891           jQuery(Cadre).css({ marginLeft: "auto" });
    905892           // jQuery(Cadre).width(Zone_Affichage.width);
    906893           jQuery(Cadre).css("width", "auto");
     
    10671054
    10681055               }
    1069 
     1056               //jQuery("#gbo").width();
     1057               jQuery(Cadre).width(img_finale.width + marges_llgbo);
    10701058
    10711059               if (!theme.match(RegExp("lapis", "gi"))) {
  • 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 {
  • extensions/Autosize/template/conflit.tpl

    r8957 r10561  
    55    var cl_version = '{$cl_version}';
    66    var cl_plugin = '{$name}';
     7    var Version_pwg='{$Version_pwg}';
    78{if $DEBUG == "true"}
    89    var cl_query = '{$autosize_parametres->query}';
Note: See TracChangeset for help on using the changeset viewer.