Ignore:
Timestamp:
May 17, 2011, 6:43:15 PM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatibility with pamooramics & gmaps

File:
1 edited

Legend:

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

    r10846 r10913  
    1818
    1919}
     20nu_img = 0;
     21tempo=0;
    2022
    2123function Wait_pamoorama() {
     
    2325        mypanorama = window.myPamoorama;
    2426        if (!mypanorama) {
     27          tempo = tempo + 1;
     28          if (tempo > 10)
     29          return true;
     30
    2531            setTimeout("Wait_pamoorama()", 500);
    2632            return false;
     
    4349    }
    4450}
    45 nu_img = 0;
     51
    4652
    4753//==========================================================================
     
    253259               function (event, ui) {
    254260                 List_autosize_resize(event, ui);
    255 
     261                 jQuery().newResize();
    256262               });
    257263
     
    491497           switch (Type_Img) {
    492498             case "map":
    493                img_reelle.height = info_img.height;
     499               img_reelle.height = winheight; // info_img.height;
    494500               info_map = jQuery("#mapPicture").infos();
    495501               jQuery("#map").css("left", info_map.width + "px");
     
    10301036             jQuery("#navThumbNext").css({ display: 'none' });
    10311037             jQuery("#navThumbPrev").css({ display: 'none' });
     1038             jQuery("#theImage").css({ marginTop: info_ToolBar.height+"px", marginLeft: "0px",
     1039               width: winwidth+"px",
     1040               height: winheight + "px"
     1041             });
     1042             //mapPicture
    10321043           }
    10331044           try {
     
    10411052                   gallyPP = new GallyPP();
    10421053
    1043                 iph= jQuery("#imageHeaderBar").infos();
    1044                 jQuery("#imageToolBar").css({ top: iph.bottom + "px", position: "absolute" });
    1045                 jQuery("#theImage").width(winwidth);
     1054                 iph = jQuery("#imageHeaderBar").infos();
     1055                 jQuery("#imageToolBar").css({ top: iph.bottom + "px", position: "absolute" });
     1056                 jQuery("#theImage").width(winwidth);
    10461057               }
    10471058               //===========================================================================
    1048                /*   
    10491059               if (jQuery("#navThumbPrev").length > 0) {
    1050                jQuery("#navThumbPrev").css({ left: 20 + "px",
    1051                overflow: "hidden"
    1052                });
    1053 
     1060                 jQuery("#navThumbPrevContainer").css({ left: "0px"
     1061                 });
    10541062               }
    10551063               if (jQuery("#navThumbNext").length > 0) {
    1056                jQuery("#navThumbNext").css({ right: 20 + "px",
    1057                overflow: "hidden"
    1058                });
    1059 
    1060                }
    1061                */
    1062 
     1064                 jQuery("#navThumbNextContainer").css({ left: "0px"
     1065                 });
     1066               }
    10631067               //=============================================================================
    1064 
    1065 
    10661068               if (!theme.match(RegExp("lapis", "gi"))) {
    10671069                 if (typeof initializeImageMode == "function") {
     
    15361538jQuery(function () {
    15371539  //'gallyInterfaceReady'
    1538             jQuery(Document).live('gallyInterfaceReady',function () {
    1539                alert("Clic sur a#test1.");
    1540             });
     1540
    15411541    jQuery('#pamoorama').live('ON', function (e) {
    15421542        jQuery(jQuery('.debug').get(1)).trigger('ON');
Note: See TracChangeset for help on using the changeset viewer.