Changeset 9065


Ignore:
Timestamp:
Feb 2, 2011, 5:39:06 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] bug with cookies in ORC1
.


Location:
extensions/Autosize
Files:
3 edited

Legend:

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

    r9007 r9065  
    234234
    235235         jQuery(window).unload(function () {
    236              if (TheImg) {
    237                  jQuery.cookie('img', TheImg.src); // créer un cookie avec une valeur
    238                  jQuery.cookie('img_h', jQuery(TheImg).height());
    239                  jQuery.cookie('img_w', jQuery(TheImg).width());
    240                  jQuery.cookie('window_height', Window_Affichage.height);
    241                  jQuery.cookie('window_width', Window_Affichage.width);
     236             try {
     237                 if (TheImg) {
     238                     jQuery.cookie('img', TheImg.src); // créer un cookie avec une valeur
     239                     jQuery.cookie('img_h', jQuery(TheImg).height());
     240                     jQuery.cookie('img_w', jQuery(TheImg).width());
     241                     jQuery.cookie('window_height', Window_Affichage.height);
     242                     jQuery.cookie('window_width', Window_Affichage.width);
     243                 }
     244             } catch (r) {
     245
    242246             }
    243247
  • extensions/Autosize/main.inc.php

    r8981 r9065  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.4.44
     4Version: 1.4.45
    55Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
  • extensions/Autosize/template/header_2_2.tpl

    r8912 r9065  
    33{combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"}
    44{combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"}
     5{combine_script id="cookie" path = $AUTOSIZE_PATH|@cat:"js/jquery.cookie.js" require="jquery"}
Note: See TracChangeset for help on using the changeset viewer.