Changeset 22220


Ignore:
Timestamp:
04/15/13 16:08:40 (7 years ago)
Author:
cljosse
Message:

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

Location:
extensions/Autosize
Files:
2 edited

Legend:

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

    r22218 r22220  
    417417                                $model=$default_size; 
    418418                        } 
    419  
     419      if(!isset($current['derivatives'][$model])){ 
     420      $model=$default_size; 
     421      } 
     422       
    420423                        $selected_derivative =  $current['derivatives'][$model]; 
    421424                        $template->append('current', array( 
  • extensions/Autosize/js/Affiche_script.js

    r22219 r22220  
    21872187    k1 = 0; 
    21882188  }); 
    2189 //========================================================== 
     2189  //========================================================== 
     2190  if(typeof changeImgSrc=="undefined"){ 
     2191  function changeImgSrc(url, typeSave, typeMap) { 
     2192    var theImg = document.getElementById("theMainImage"); 
     2193    if (theImg) { 
     2194      theImg.removeAttribute("width"); theImg.removeAttribute("height"); 
     2195      theImg.src = url; 
     2196      theImg.useMap = "#map" + typeMap; 
     2197    } 
     2198    jQuery('#derivativeSwitchBox .switchCheck').css('visibility', 'hidden'); 
     2199    jQuery('#derivativeChecked' + typeSave).css('visibility', 'visible'); 
     2200    document.cookie = 'picture_deriv=' + typeSave + ';path='+options.COOKIE_PATH; 
     2201  } 
     2202  } 
Note: See TracChangeset for help on using the changeset viewer.