Changeset 22218


Ignore:
Timestamp:
Apr 15, 2013, 1:42:45 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize update to piwigo 2.5 (fix bugs)

Location:
extensions/Autosize
Files:
9 edited

Legend:

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

    r22191 r22218  
    6666                        $infos_message .=  "GET:"  . cl_print_var($_GET) ;
    6767                        $infos_message .= "POST:"  . cl_print_var($_POST) ;
     68      $infos_message .= "SERVER:"  . cl_print_var($_SERVER["HTTP_HOST"]) ;
    6869                        $infos_message .= "$pictureDeriv $pictureSelType $pictureMap ";
    6970                }
  • extensions/Autosize/js/Affiche_script.js

    r22191 r22218  
    232232        }
    233233        if (options.pictureDeriv) {
    234           if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi")
     234          jQuery(".switchCheck").css({ visibility: "hidden" });
     235          if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") {
    235236            jQuery("#derivativeChecked" + options.pictureSelType).css("visibility", "visible");
    236           else
     237            jQuery("#derivativeChecked" + options.pictureDeriv + ".switchCheck").css({ visibility: "visible", color: "grey" });
     238          } else
    237239            jQuery("#derivativeChecked" + options.pictureDeriv).css("visibility", "visible");
    238240          jQuery('.auto_details').text(" (" + Zone_image.image.width + " x " + Zone_image.image.height + ") " + options.pictureDeriv);
     
    505507    jQuery(".Autosize").hide();
    506508    DEBUG_autosize = options.DEBUG_autosize;
    507     var COOKIE_PATH = options.COOKIE_PATH;
    508509    OptionsCookie = jQuery.extend({}, { path: options.COOKIE_PATH, expires: 1 });
    509510    var cookies = Get_cookies();
     
    523524    var infos_window = jQuery(window).infos();
    524525    var infos_theImageAndInfos = jQuery(theImageAndInfos_id).infos();  // Cadre
    525     // general
    526     var infos_content;
     526    // general 
     527    var infos_content=jQuery("#content").infos(true);
    527528    var infos_the_page = jQuery("#the_page").infos(true);
    528529    var nopano = false;
     
    813814        options.pictureMap = retour.pictureDeriv;
    814815        Save_cookies(options);
    815         setTimeout("Autosize_resize(false, options)", 500);
    816         // Autosize_resize(true, options);
     816        setTimeout(function (i) {
     817          Autosize_resize(false, options);
     818        }, 2);
     819
    817820      }
    818821    });
     
    10141017    // _________________Autosize ____________________________________
    10151018
    1016     /***************************************************************************
    1017     * changeImgSrc
    1018     **************************************************************************/
    1019     changeImgSrc = function (url, typeSave, typeMap, type) {
    1020       if (type == "Autosize" || type == "SelMaxi") {
    1021 
    1022       }
    1023       if (COOKIE_PATH == type) {
    1024         type = options.pictureSelType;
    1025       }
    1026       if (typeof type != "undefined") {
    1027         options.pictureSelType = type;
    1028       } else {
    1029         type = options.pictureSelType;
    1030       }
    1031       options.pictureDeriv = typeSave;
    1032       typeMap = typeSave;
    1033       options.pictureMap = typeMap;
    1034       options.pictureDeriv = typeSave;
    1035       jQuery.cookie('picture_deriv', typeSave, { path: COOKIE_PATH, expires: 1 });
    1036 
    1037       url_old = jQuery("#theMainImage").attr("src");
    1038 
    1039       jQuery('#derivativeSwitchBox .switchCheck').css('visibility', 'hidden');
    1040       if (typeof type != "undefined" && (type == "Autosize" || type == "SelMaxi")) {
    1041         jQuery('#derivativeChecked' + type).css('visibility', 'visible');
    1042         jQuery.cookie('picture_sel_type', type, OptionsCookie);
    1043       } else {
    1044 
    1045         jQuery('#derivativeChecked' + typeSave).css('visibility', 'visible');
    1046         jQuery.cookie('picture_sel_type', typeSave, OptionsCookie);
    1047       }
    1048       if (url != url_old) {
    1049         file_exists(url);
    1050         url_old = url;
    1051       }
    1052       jQuery("#theMainImage").removeAttr("width height")
    1053       .load(function (i) {
    1054         if (!init_img(this)) {
    1055           return;
    1056         }
    1057         // =======================================================================
    1058 
    1059       })
    1060       .error(function (e) {
    1061         imgsrc = this.src;
    1062         if (!this.complete) {
    1063           // le fichier n'est pas present
    1064           imgsrc = jQuery(this).attr("src");
    1065           return false;
    1066         }
    1067 
    1068       })
    1069            .live("Success", function (e) {
    1070              if (typeof imageInfos_id == "undefined") return false;
    1071            })
    1072 
    1073             .live("Error", function (data) {
    1074               if (typeof imageInfos_id == "undefined") return;
    1075 
    1076             })
    1077              .live("fail", function (data) {
    1078                if (typeof imageInfos_id == "undefined") return;
    1079 
    1080              })
    1081               .live("Progress", function (data) {
    1082                 if (typeof imageInfos_id == "undefined") return;
    1083 
    1084               })
    1085               .live("IsRejected", function (data) {
    1086                 if (typeof imageInfos_id == "undefined") return;
    1087 
    1088               })
    1089          .live("Finish", function (e, data) {
    1090            if (typeof imageInfos_id == "undefined") return;
    1091 
    1092          })
    1093          .live("change", function (e) {
    1094            theMainImage_st = this.complete;
    1095            imgsrc = this.src;
    1096          })
    1097             .live("Complete", function (e, data) {
    1098               if (data.statusText != "OK") {
    1099                 popup = jQuery(".errors");
    1100                 if (popup.length == 0) {
    1101                   jQuery("#theImage").append("<div class='errors'><span></span></div>");
    1102                 }
    1103                 jQuery(".errors").text("Erreur : [" + data.done + "] " + data.src);
    1104                 jQuery(".errors").show().delay(10000).hide(2000);
    1105                 return;
    1106               }
    1107               if (data.src) { }
    1108               if (options.pictureDeriv == "Original" && data.src.match(RegExp("\-.." + ".jpg", "gi"))) {
    1109                 // Autosize_resize(true, options);
    1110               } else if (data.src.match(RegExp(options.pictureDeriv.substr(0, 2) + ".jpg", "gi"))) {
    1111                 // Autosize_resize(true, options);
    1112               } else {
    1113 
    1114               }
    1115 
    1116             });
    1117       // _________ theMainImage ___________
    1118 
    1119     };
    1120 
    1121     // __________________ changeImgSrc ______________________
    11221019
    11231020    /***************************************************************************
    11241021    * pamoorama
    11251022    **************************************************************************/
    1126 
    1127 
    11281023    jQuery("#pamoorama").bind("on", function () { alert($(this).text()); });
    11291024    jQuery("#pamoorama").bind("on", function (e) {
     
    14451340        // ===== calcul Image ===
    14461341        if (typeof imageInfos_id == "undefined") return;
    1447         if (Calcul_Image()=="Wait") {   // image en cours           
     1342        if (Calcul_Image() == "Wait") {   // image en cours           
    14481343          return "Wait";
    14491344        }
     
    18281723      Zone_image.marges = { width: marge_left + marge_right + retrait_img.width,
    18291724        height: marge_top + marge_bottom + retrait_img.height
    1830       }
     1725      };
    18311726      return true;
    1832     }
     1727    };
    18331728
    18341729    /***************************************************************************
     
    22692164    } // Debug_pos
    22702165    // ==========================================================
    2271 
    2272 
    2273 
    2274 
    2275 
    2276 
    2277 
    2278 
    2279 
    2280   });                                                                                                                                                            // ready
    2281 
    2282 
    2283 
     2166  });                                                                                                                                                               // ready
    22842167  jQuery("#derivativeSwitchBox a").click(function (e) {
    22852168    k1 = 0;
    22862169  });
    22872170//==========================================================
    2288   function file_exists(filename){       
    2289           var params = { filename: filename, types: [], src: [] };
    2290           url = "plugins/PersonalPlugin/fileok.php?filename=" + filename;
    2291     jQuery.ajax({
    2292         type: "POST",
    2293         url: url,
    2294         data: params,
    2295         dataType: "json",
    2296         success: function (data) {
    2297           if (!data.stat || data.stat != "ok") {
    2298             return;
    2299           }
    2300          if(data.result[1]=="ok"){
    2301         jQuery("#theMainImage").attr("src", data.result[0]);
    2302   }
    2303   /*
    2304           retour = "<ul>"  ;
    2305           jQuery(".infos").text(data.stat);       
    2306           for (var i = 0; i < data.result.length; i++) {
    2307             retour = retour + "<li >" + data.result[i] + "</li>";
    2308 
    2309           }
    2310           retour += "</ul>";
    2311           jQuery(".infos").html(retour);
    2312   */
    2313         },
    2314         error: function (data) {
    2315           jQuery(".infos").html(data.responseText);
    2316         }
    2317       });
    2318   };
  • extensions/Autosize/js/JScript.js

    r18716 r22218  
    4343    stb = jQuery('#scrolltobottom');
    4444    stt = jQuery('#scrolltotop');
    45     stt.css('opacity', 1)
    46     stb.css('opacity', 1)
     45    stt.css('opacity', 1);
     46    stb.css('opacity', 1);
    4747
    4848    jQuery('#scrolltotop').height(100);
  • extensions/Autosize/js/autosize.cookie.js

    r22133 r22218  
    1 jQuery.cookie = function(name, value, options) {
     1if (typeof jQuery.cookie != "function") {
     2  jQuery.cookie = function (name, value, options) {
    23    if (typeof value != 'undefined') { // name and value given, set cookie
    3         options = options || {};
    4         if (value === null) {
    5             value = '';
    6             options.expires = -1;
     4      options = options || {};
     5      if (value === null) {
     6        value = '';
     7        options.expires = -1;
     8      }
     9      var expires = '';
     10      if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
     11        var date;
     12        if (typeof options.expires == 'number') {
     13          date = new Date();
     14          date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
     15        } else {
     16          date = options.expires;
    717        }
    8         var expires = '';
    9         if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
    10             var date;
    11             if (typeof options.expires == 'number') {
    12                 date = new Date();
    13                 date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
    14             } else {
    15                 date = options.expires;
    16             }
    17             expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
     18        expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
     19      }
     20      // CAUTION: Needed to parenthesize options.path and options.domain
     21      // in the following expressions, otherwise they evaluate to undefined
     22      // in the packed version for some reason...
     23      var path = options.path ? '; path=' + (options.path) : '';
     24      var domain = options.domain ? '; domain=' + (options.domain) : '';
     25      var secure = options.secure ? '; secure' : '';
     26      document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
     27    } else { // only name given, get cookie
     28      var cookieValue = null;
     29      if (document.cookie && document.cookie != '') {
     30        var cookies = document.cookie.split(';');
     31        for (var i = 0; i < cookies.length; i++) {
     32          var cookie = jQuery.trim(cookies[i]);
     33          // Does this cookie string begin with the name we want?
     34          if (cookie.substring(0, name.length + 1) == (name + '=')) {
     35            cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
     36            break;
     37          }
    1838        }
    19         // CAUTION: Needed to parenthesize options.path and options.domain
    20         // in the following expressions, otherwise they evaluate to undefined
    21         // in the packed version for some reason...
    22         var path = options.path ? '; path=' + (options.path) : '';
    23         var domain = options.domain ? '; domain=' + (options.domain) : '';
    24         var secure = options.secure ? '; secure' : '';
    25         document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    26     } else { // only name given, get cookie
    27         var cookieValue = null;
    28         if (document.cookie && document.cookie != '') {
    29             var cookies = document.cookie.split(';');
    30             for (var i = 0; i < cookies.length; i++) {
    31                 var cookie = jQuery.trim(cookies[i]);
    32                 // Does this cookie string begin with the name we want?
    33                 if (cookie.substring(0, name.length + 1) == (name + '=')) {
    34                     cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
    35                     break;
    36                 }
    37             }
    38         }
    39         return cookieValue;
     39      }
     40      return cookieValue;
    4041    }
    41     };
    42    
    43 
    44     function hideMenu(delay) {
    45       var menubar = jQuery("#menubar");
    46       var menuswitcher = jQuery("#menuSwitcher");
    47       var content = jQuery("#the_page > .content");
    48       var pcontent = jQuery("#content");
    49 
    50       menubar.hide(delay);
    51       menuswitcher.addClass("menuhidden").removeClass("menushown");
    52       content.addClass("menuhidden").removeClass("menushown");
    53       pcontent.addClass("menuhidden").removeClass("menushown");
    54       jQuery.cookie('picture-menu', 'hidden', { path: "/" });
    55 
    56     }
    57 
    58     function showMenu(delay) {
    59 
    60       var menubar = jQuery("#menubar");
    61       var menuswitcher = jQuery("#menuSwitcher");
    62       var content = jQuery("#the_page > .content");
    63       var pcontent = jQuery("#content");
    64 
    65       menubar.show(delay);
    66       menuswitcher.addClass("menushown").removeClass("menuhidden");
    67       content.addClass("menushown").removeClass("menuhidden");
    68       pcontent.addClass("menushown").removeClass("menuhidden");
    69       jQuery.cookie('picture-menu', 'visible', { path: "/" });
    70 
    71     }
    72 
    73     function hideInfo(delay) {
    74 
    75       var imageInfos = jQuery("#imageInfos");
    76       var infoswitcher = jQuery("#infoSwitcher");
    77       var theImage = jQuery("#theImage");
    78 
    79       imageInfos.hide(delay);
    80       infoswitcher.addClass("infohidden").removeClass("infoshown");
    81       theImage.addClass("infohidden").removeClass("infoshown");
    82       jQuery.cookie('side-info', 'hidden', { path: "/" });
    83 
    84     }
    85 
    86     function showInfo(delay) {
    87 
    88       var imageInfos = jQuery("#imageInfos");
    89       var infoswitcher = jQuery("#infoSwitcher");
    90       var theImage = jQuery("#theImage");
    91 
    92       imageInfos.show(delay);
    93       infoswitcher.addClass("infoshown").removeClass("infohidden");
    94       theImage.addClass("infoshown").removeClass("infohidden");
    95       jQuery.cookie('side-info', 'visible', { path: "/" });
    96 
    97     }
    98     //=========================================================================
    99     jQuery(window).ready(function (jQuery) {
    100       return;
    101       jQuery(window).load(function (i) {
    102 
    103       });
    104       var myWidth = 0, myHeight = 0, myImgWidth = 0, myImgHeight = 0;
    105       if (typeof (window.innerWidth) == 'number') {
    106         //Non-IE
    107         myWidth = window.innerWidth;
    108         myHeight = window.innerHeight;
    109       } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
    110         //IE 6+ in 'standards compliant mode'
    111         myWidth = document.documentElement.clientWidth;
    112         myHeight = document.documentElement.clientHeight;
    113       } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
    114         //IE 4 compatible
    115         myWidth = document.body.clientWidth;
    116         myHeight = document.body.clientHeight;
    117       }
    118       windowWidth = parseInt(myWidth);
    119       windowHeight = parseInt(myHeight);
    120 
    121 
    122       return;
    123 
    124       // side-menu show/hide
    125 
    126 
    127       var sidemenu = jQuery.cookie('picture-menu') || jQuery.cookie('side-menu');
    128       var menubar = jQuery("#menubar");
    129       //  return;
    130       if (menubar.length == 1) {
    131 
    132         jQuery("#menuSwitcher").html("<div class=\"switchArrow\">&nbsp;</div>");
    133 
    134         // if cookie says the menu is hiding, keep it hidden!
    135         if (sidemenu == 'visible' || sidemenu == 'showing') {
    136           showMenu(0);
    137         } else {
    138           hideMenu(0);
    139         }
    140 
    141         jQuery("#menuSwitcher").click(function () {
    142           if (jQuery("#menubar").is(":hidden")) {
    143             showMenu(0);
    144             return false;
    145           } else {
    146             hideMenu(0);
    147             return false;
    148           }
    149         });
    150 
    151       }
    152 
    153       // info show/hide
    154 
    155       var sideinfo = jQuery.cookie('side-info');
    156       var imageInfos = jQuery("#imageInfos");
    157 
    158       if (imageInfos.length == 1) {
    159 
    160         jQuery("#infoSwitcher").html("<div class=\"switchArrow\">&nbsp;</div>");
    161 
    162         // if cookie says the menu is hiding, keep it hidden!
    163         if (sideinfo == 'hidden') {
    164           hideInfo(0);
    165         } else {
    166           showInfo(0);
    167         }
    168 
    169         jQuery("#infoSwitcher").click(function () {
    170           if (jQuery("#imageInfos").is(":hidden")) {
    171             showInfo(0);
    172             return false;
    173           } else {
    174             hideInfo(0);
    175             return false;
    176           }
    177         });
    178 
    179       }
    180 
    181       // comments show/hide
    182 
    183       var commentsswicther = jQuery("#commentsSwitcher");
    184       var comments = jQuery("#thePicturePage #comments");
    185 
    186       commentsswicther.html("<div class=\"switchArrow\">&nbsp;</div>");
    187 
    188       if (comments.length == 1) {
    189         var comments_button = jQuery("#comments h3");
    190 
    191         if (comments_button.length == 0) {
    192           jQuery("#addComment").before("<h3>Comments</h3>");
    193           comments_button = jQuery("#comments h3");
    194         }
    195 
    196         if (jQuery.cookie('comments') == 'visible') {
    197           comments.addClass("commentsshown");
    198           comments_button.addClass("comments_toggle").addClass("comments_toggle_off");
    199         } else {
    200           comments.addClass("commentshidden");
    201           comments_button.addClass("comments_toggle").addClass("comments_toggle_on");
    202         }
    203 
    204         comments_button.click(function () { commentsToggle() });
    205         commentsswicther.click(function () { commentsToggle() });
    206 
    207       }
    208 
    209 
    210     });
    211 
    212     function commentsToggle() {
    213       var comments = jQuery("#thePicturePage #comments");
    214       var comments_button = jQuery("#comments h3");
    215 
    216       if (comments.hasClass("commentshidden")) {
    217         comments.removeClass("commentshidden").addClass("commentsshown");
    218         comments_button.addClass("comments_toggle_off").removeClass("comments_toggle_on"); ;
    219         jQuery.cookie('comments', 'visible', { path: "/" });
    220       } else {
    221         comments.addClass("commentshidden").removeClass("commentsshown");
    222         comments_button.addClass("comments_toggle_on").removeClass("comments_toggle_off"); ;
    223         jQuery.cookie('comments', 'hidden', { path: "/" });
    224       }
    225 
    226     }
     42  };
     43  //=========================================================================
     44}
  • extensions/Autosize/js/autosize.dimensions.js

    r22116 r22218  
    117117
    118118
    119       var Left = 0, Top = 0, offset, parentOffset, offsetParent, results;
     119      var Left = 0, Top = 0, results;
    120120      var borderwidth = { width: "0 0 0 0",
    121121        top: 0,
     
    123123        right: 0,
    124124        bottom: 0
    125       }
     125      };
    126126      var padding = { padding: "0 0 0 0",
    127127        top: 0,
     
    196196          var myWidth = 0, myHeight = 0;
    197197
    198           var xHeight = jQuery(document).height();
    199198          var x2Height = jQuery(window).height();
    200199
     
    377376        };
    378377
    379         return results
     378        return results;
    380379      } return results;
    381380    },
     
    384383    */
    385384    d_position: function () {
    386       var left = 0, top = 0, elem = this[0], offset, parentOffset, offsetParent, results;
     385      var  elem = this[0], offset, parentOffset, offsetParent, results=null;
    387386      l1 = jQuery(elem).css("left");
    388387      if (elem) {
     
    426425    */
    427426    offsetParent: function () {
     427         var offsetParent = null;
    428428      if (this[0] == window) return;
    429429      try {
    430430
    431431        n1 = this[0].nodeName;
    432         var offsetParent = this[0].offsetParent;
     432        offsetParent = this[0].offsetParent;
    433433
    434434        while (offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static'))
     
    447447          if (window.getComputedStyle) // Mozilla Firefox & cie
    448448          {
    449             var propriete = window.getComputedStyle(element, null);
     449            propriete = window.getComputedStyle(element, null);
    450450          }
    451451          else if (element.currentStyle) // Microsoft Internet Explorer
    452452          {
    453 
    454             var propriete = element.currentStyle;
     453             propriete = element.currentStyle;
    455454          }
    456455      } catch (e) {
     
    541540    return val;
    542541
    543   }
     542  };
    544543
    545544  /*
     
    559558      }
    560559    }
    561     valeur_num = Math.ceil(valeur_num);
    562     return valeur_num || 0;
     560    valeur_num = Math.ceil(valeur_num)|| 0;
     561    return valeur_num  ;
    563562  }
    564563
  • extensions/Autosize/js/autosizeDetect.js

    r22191 r22218  
    11function on_load() {
    2         var myWidth = 0, myHeight = 0, myImgWidth = 0, myImgHeight = 0;
     2        var myWidth = 0, myHeight = 0;
    33        if (typeof (window.innerWidth) == 'number') {
    44                // Non-IE
  • extensions/Autosize/js/conflit.js

    r18716 r22218  
    77var browser = detect_browser();
    88image_w = 600;
    9 image_h = 400
     9image_h = 400;
    1010var pamoorama_detect = true;
    1111
     
    2323        netscape: false,
    2424        seamonkey: false
    25     }
     25    };
    2626    if (checkIt('konqueror')) { mybrowser.Konqueror = true; lbrowser = "konqueror"; OS = "Linux"; }
    2727    else if (checkIt('seamonkey')) { mybrowser.seamonkey = true; lbrowser = "seamonkey"; }
     
    4646    mybrowser.OS = OS;
    4747    mybrowser.browser = lbrowser;
    48     return mybrowser
     48    return mybrowser;
    4949};
    5050function checkIt(string) {
     
    190190          jQuery(".gmapsPopup").css("left", l1 + "px");
    191191          jQuery(".gmapsPopup").css("top", h1 + "px");
    192         })
     192        });
    193193        //=============================================================
    194194        //   jQuery(window).resize();
     
    281281function getStackTrace() {
    282282    var callstack = [];
    283     var isCallstackPopulated = false;
     283    var isCallstackPopulated = false;
     284    var state_ff = "";
     285    var currentFunction = arguments.callee.caller;
     286    var fn2 = null;
     287    var fn1=null;
     288   
    284289    try {
    285290        i.dont.exist += 0; //doesn't exist- that's the point
    286291    } catch (e) {
    287         var retcallstack = [];
    288         var e_message = e.message;
     292        retcallstack = [];       
    289293        var e_stack = e.stack;
    290         var state_ff = "";
     294       
    291295        if (e_stack) { //Firefox Opera 3.6
    292296            //=== test fichier source =============
     
    361365    }
    362366    if (!isCallstackPopulated) { //IE and Safari
    363         var currentFunction = arguments.callee.caller;
     367        currentFunction = arguments.callee.caller;
     368        fn2 = null,fn1=null;
    364369        //next
    365370        callstack = [];
     
    370375        }
    371376        states = [];
    372         var fn1 = currentFunction.toString(); // fonction d'appel local (conflit)
     377        fn1 = currentFunction.toString(); // fonction d'appel local (conflit)
    373378
    374379        currentFunction = currentFunction.caller;
    375         var fn2 = currentFunction.toString(); // fonction d'appel local (conflit)
     380       fn2 = currentFunction.toString(); // fonction d'appel local (conflit)
    376381        currentFunction = currentFunction.caller;
    377382        //$family
     
    407412            //======================
    408413            //? bubble
    409             Expression = new RegExp("\\$", "gi")
     414            Expression = new RegExp("\\$", "gi");
    410415            if (fn.match(Expression)) {
    411416                if (fn.match(RegExp("rateForm", "gi"))) {
     
    416421            }
    417422            // "window.fireEvent('domready')"
    418             Expression = new RegExp("window.fireEvent", "gi")
     423            Expression = new RegExp("window.fireEvent", "gi");
    419424            if (fn.match(Expression)) {  //luciano
    420425                // "window.fireEvent('domready')"
    421                 Expression = new RegExp("window.fireEvent..domready..", "gi")
     426                Expression = new RegExp("window.fireEvent..domready..", "gi");
    422427                if (fn.match(Expression)) {
    423428                    states.push('Luciano');
     
    492497    $.ajax = function (args) {
    493498      return jQuery.ajax(args);
    494     }   
     499    }   ;
    495500}
    496501   
  • extensions/Autosize/template/autosize.tpl

    r19030 r22218  
    1111        has_pamoorama: '{$has_pamoorama}',
    1212        slideshow: '{$slide_show}',
    13 
     13        AUTOSIZE_PATH:'{$AUTOSIZE_PATH}',
    1414        pictureSelType:'{$pictureSelType}',       
    1515        pictureDeriv :'{$pictureDeriv}' ,
  • extensions/Autosize/template/picture_1.tpl

    r22191 r22218  
    1515{else }
    1616        {combine_script id="Affiche_script" path= $AUTOSIZE_PATH|@cat:"js/Affiche_script.js" require='jquery,autosize.dimensions'  }
    17         {if $theme != "elegant"}
    18                 {combine_script id="autosize.cookie" path = $AUTOSIZE_PATH|@cat:"js/autosize.cookie.js" require="jquery"  }
    19         {/if}
     17
    2018        {combine_script id="autosize.dimensions" path = $AUTOSIZE_PATH|@cat:"js/autosize.dimensions.js" require="jquery"}
    2119{/if}
     
    2422        {combine_script id="maps.google.com/api" path="http://maps.google.com/maps/api/js?sensor=false" require="jquery" }
    2523{/if}
     24
     25        {if $theme != "elegant"}        {/if}
     26
     27                {combine_script id="autosize.cookie" path = $AUTOSIZE_PATH|@cat:"js/autosize.cookie.js" require="jquery,Affiche_script" }
     28
     29 
Note: See TracChangeset for help on using the changeset viewer.