Ignore:
Timestamp:
May 11, 2011, 12:13:49 PM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatibility with theme gally

  • rename lang.php to plugin.lang.php
  • rename jquery.cookies.js to autosize.cookie.js
  • rename jquery.dimensions.js to autosize.dimensions.js
File:
1 edited

Legend:

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

    r10787 r10845  
    6161                                         function (i) {
    6262                                             jQuery(Parent).css({ opacity: "1" });
    63                                              if (DEBUG == "true") {
     63                                             if (DEBUG_autosize == "true") {
    6464                                                 bp1 = jQuery('.debug').get(nu_img);
    6565                                                 if (!bp1) nu_img = 0;
     
    286286         rapport = -1;
    287287         marges_llgbo = 0;
    288          pos = 0;
     288
    289289         //=============================================================
    290290         Type_Img = "";
     
    365365           //
    366366           //if (options.imageAutosize) return true ;stripped
    367            if (DEBUG == "true") {
     367           if (DEBUG_autosize == "true") {
    368368             nu_img += 1;
    369369
     
    533533             case "img_autre":
    534534               if (!TheImg) {
    535                  if (DEBUG == "true") alert("TheImg=null");
     535                 if (DEBUG_autosize == "true") alert("TheImg=null");
    536536                 return true;
    537537
     
    10361036                 if (typeof (currentTab) == "undefined") inittoolbar();
    10371037                 else initializeImageMode("resize");
     1038               } else {
     1039                 tp = gallyPP.getImageProp();
     1040                 if (typeof (GallyPP) == "function")
     1041                   gallyPP = new GallyPP();
     1042
     1043                iph= jQuery("#imageHeaderBar").infos();
     1044                jQuery("#imageToolBar").css({ top: iph.bottom + "px", position: "absolute" });
     1045
    10381046               }
    10391047               //===========================================================================
    10401048
    10411049               if (jQuery("#navThumbPrev").length > 0) {
    1042                  jQuery("#navThumbPrev").css({ height: info_img.height + "px",
    1043                    overflow: "hidden"
    1044                  });
     1050               jQuery("#navThumbPrev").css({ left: 20 + "px",
     1051               overflow: "hidden"
     1052               });
    10451053
    10461054               }
    10471055               if (jQuery("#navThumbNext").length > 0) {
    1048                  jQuery("#navThumbNext").css({ height: info_img.height + "px",
    1049                    overflow: "hidden"
    1050                  });
    1051 
    1052                }
    1053                //jQuery("#gbo").width();
    1054                jQuery(Cadre).width(img_finale.width + marges_llgbo);
     1056               jQuery("#navThumbNext").css({ right: 20 + "px",
     1057               overflow: "hidden"
     1058               });
     1059
     1060               }
     1061               */
     1062
     1063               //=============================================================================
     1064
    10551065
    10561066               if (!theme.match(RegExp("lapis", "gi"))) {
     
    10771087
    10781088           }
    1079            //  --- rglage de la hauteur de page en fonction du copyright-----------
    1080            if (typeof (pos) == "undefined") pos = jQuery("#copyright").infos();
    1081            if (pos != jQuery("#copyright").infos())
    1082              pos = jQuery("#copyright").infos();
     1089           //  --- réglage de la hauteur de page en fonction du copyright-----------
     1090           if (typeof (pos_copyright) == "undefined") pos_copyright = jQuery("#copyright").infos();
     1091
    10831092           if (theme.match(RegExp("stripped", "gi"))) {
    10841093             var TitleBox = jQuery("#imageTitleContainer");
    10851094             if (TitleBox.length != 0) TitleBox.css("width", img_finale.width + "px");
    10861095           } else {
    1087              if (pos.top > 100)
    1088                jQuery("#the_page").height(pos.top);
    1089 
    1090            }
     1096             if (pos_copyright.top > 100) {
     1097               jQuery("#the_page").height(pos_copyright.top);
     1098             }
     1099           }
     1100
    10911101
    10921102           if (!theme.match(RegExp("luciano", "gi"))) {
    1093              jQuery("#linkNext").css({ height: "80px", width: "200px", overflow: "hidden" });
    1094              jQuery("#linkPrev").css({ height: "80px", width: "200px", overflow: "hidden" });
    1095              jQuery(".navThumb img").css({ height: "80px", width: "", overflow: "hidden" });
     1103           jQuery("#linkNext").css({ height: "80px", width: "200px", overflow: "hidden" });
     1104           jQuery("#linkPrev").css({ height: "80px", width: "200px", overflow: "hidden" });
     1105           jQuery(".navThumb img").css({ height: "80px", width: "", overflow: "hidden" });
    10961106           }
    10971107           info_frame = jQuery(Cadre).infos();
     
    11041114
    11051115           } else {
    1106              pos = "absolute";
     1116
    11071117             t1 = info_frame.top;
    11081118             l1 = info_frame.left;
    1109              info_theImageBox = jQuery(Parent).infos();
     1119             info_theImageBox = jQuery(Parent).infos(); //theImage
    11101120           }
    11111121
     
    11131123           info_theImageBox.top = t1;
    11141124           info_theImageBox.left = l1;
    1115            info_theImageBox.pos = "absolute";
     1125           //  info_theImageBox.position = "absolute";
    11161126           Window_Affichage = info_theImageBox;
    1117            if (DEBUG == "true") {
     1127           if (DEBUG_autosize == "true") {
    11181128             //   jQuery(Cadre).css("border", "solid green");
    11191129
    1120              jQuery("#Debug5").css({ background: "transparent",
    1121                position: pos,
     1130             jQuery("#Debug5").css({ background: "red",
     1131               position: "absolute",
    11221132               border: "green solid 2px",
    11231133               textAlign: align_auto,
    1124                margin: Window_Affichage.margin.margin,
     1134               margin: "auto",
    11251135               top: Window_Affichage.top + "px",
    11261136               left: Window_Affichage.left + "px",
     
    13281338            marginRight: "4px",
    13291339            marginTop: "0px",
    1330             marginBottom: "0px", position: "relative"
     1340            marginBottom: "0px",
     1341            position: "relative"
    13311342        });
    13321343
     
    14861497//====================================================
    14871498function Debug_pos() {
    1488     if (DEBUG == "true") {
     1499    if (DEBUG_autosize == "true") {
    14891500
    14901501        jQuery("[id ^='Debug']").show();
     
    15201531
    15211532jQuery(function () {
     1533  //'gallyInterfaceReady'
     1534            jQuery(Document).live('gallyInterfaceReady',function () {
     1535               alert("Clic sur a#test1.");
     1536            });
    15221537    jQuery('#pamoorama').live('ON', function (e) {
    15231538        jQuery(jQuery('.debug').get(1)).trigger('ON');
     
    15661581
    15671582    // Add 10 testing debugs to start with
    1568     jQuery(window).load(function () {
    1569         DEBUG = (typeof DEBUG != "undefined") ? DEBUG : "false";
    1570         if (DEBUG == "true") {
     1583      jQuery(window).load(function () {
     1584            DEBUG_autosize = (typeof DEBUG_autosize != "undefined") ? DEBUG_autosize : "false";
     1585        if (DEBUG_autosize == "true") {
    15711586            for (var i = 0; i < 10; i++) {
    15721587                jQuery('#adddebugs').click();
Note: See TracChangeset for help on using the changeset viewer.