Changeset 18724 for extensions


Ignore:
Timestamp:
Oct 23, 2012, 12:50:32 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (init picture)

Location:
extensions/Autosize
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/include/affiche.php

    r18716 r18724  
    99$cookies="' x '";
    1010global $imgSizeWH ;
     11if(isset($_COOKIE['windowHeight'])){
    1112$windowHeight=$_COOKIE['windowHeight'];
    1213$windowWidth=$_COOKIE['windowWidth'];
     14}else{
     15$windowHeight=600;
     16$windowWidth=800;
     17}
    1318global $size ;
    1419
  • extensions/Autosize/js/Affiche_script.js

    r18723 r18724  
    10171017      // 200=window.myPamoorama.imageWidth
    10181018      // frame = Zone_image.container.width
    1019       nw = (200 * Zone_image.container.width) / window.myPamoorama.imageWidth;
     1019      nw = (200 * Zone_image.image.width) / window.myPamoorama.imageWidth;
    10201020      jQuery("#pamoorama_frame").width(nw);
    10211021    });
  • extensions/Autosize/js/autosize_ajax.js

    r18723 r18724  
    2020      jQuery("#theMainImage").trigger("ON", [{ nb: derivatives.total - derivatives.done, total: derivatives.total, done: derivatives.done,status:"ok",src:data.url}]);
    2121    } else {
    22       jQuery("#theMainImage").trigger("ON", [{ nb: derivatives.total - derivatives.done, total: derivatives.total, done: derivatives.done, status: "Nok", src: data.url}]);
     22      jQuery("#theMainImage").trigger("ON", [{ nb: derivatives.total - derivatives.done, total: derivatives.total, done: derivatives.done, status: "Nok"}]);
    2323    }
    2424
Note: See TracChangeset for help on using the changeset viewer.