Ignore:
Timestamp:
Apr 25, 2013, 2:56:51 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize update to piwigo 2.5 (fix bugs with pamooramics, charlies's )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/autosize.cookie.js

    r22218 r22360  
    11if (typeof jQuery.cookie != "function") {
     2  var cookie_options = null;
     3
    24  jQuery.cookie = function (name, value, options) {
    35    if (typeof value != 'undefined') { // name and value given, set cookie
     
    2123      // in the following expressions, otherwise they evaluate to undefined
    2224      // in the packed version for some reason...
     25      cookie_options = options;
    2326      var path = options.path ? '; path=' + (options.path) : '';
    2427      var domain = options.domain ? '; domain=' + (options.domain) : '';
     
    2730    } else { // only name given, get cookie
    2831      var cookieValue = null;
     32      if (name == "*") cookieValue = new Array();
    2933      if (document.cookie && document.cookie != '') {
    3034        var cookies = document.cookie.split(';');
     
    3539            cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
    3640            break;
     41          } else if (name == "*") {
     42
     43            cookie_name = cookie.split("=")[0];
     44            cookie_value = cookie.split("=")[1];
     45            cookieValue[cookie_name] = decodeURIComponent(cookie_value);
     46
    3747          }
    3848        }
Note: See TracChangeset for help on using the changeset viewer.