Changeset 12652

Show
Ignore:
Timestamp:
11/22/11 11:49:44 (18 months ago)
Author:
cljosse
Message:

[extensions] Autosize fix bug with cmd restore

Location:
extensions/Autosize
Files:
2 modified

Legend:

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

    r12527 r12652  
    374374  { 
    375375                global $conf,$autosize_parametres;  
     376    $autosize_parametres =""; 
     377  
     378 if (!isset($conf['cl_autosize']))  {     
     379  $conf['cl_autosize']=""; 
     380  $q = ' 
     381   INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 
     382   VALUES ("cl_autosize","","Parametres du plugin Autosize") 
     383  ;'; 
     384  pwg_query($q); 
     385  } 
     386  
     387  
     388 
    376389                $autosize_parametres =  unserialize($conf['cl_autosize']); 
    377390      // $autosize_parametres = autosize_controler::Get_Options($autosize_parametres,'cl_autosize'); 
     
    455468$infos_message .=l10n("cl_autosize_save_config")."<br>"; 
    456469 $autosize_parametres=cl_autosize_Set_Options(); 
    457  
    458  if ( isset($autosize_parametres) ) 
    459         { 
    460   
     470 if ( isset($autosize_parametres) )     {  
    461471                $query = ' 
    462472                UPDATE '.CONFIG_TABLE.' 
  • extensions/Autosize/js/Affiche_script.js

    r12535 r12652  
    44function Toggle_bp() { 
    55  cl_visible = !cl_visible; 
    6   set_cl(); 
     6   
    77  jQuery().newResize(); 
    88  Wait_Affichage(); 
     9  set_cl(); 
    910} 
    1011  function set_cl(){ 
     
    2324      src_info_1 = src5; 
    2425    } 
    25  
     26    zoom = jQuery('#zoom ').val() ; 
    2627    jQuery('#bp_cla').attr('alt', src_info); 
    2728    jQuery('#bp_cla').attr('title', src_info); 
    2829 
    2930    jQuery('#bp_cla').attr('Stitle', src_info); 
    30     jQuery('#bp_cla').attr('Stip', " "); 
    31     zoom = jQuery('#zoom ').val(); 
    32     jQuery('#bp_cla').text(src_info_1); 
     31    jQuery('#bp_cla').attr('Stip', zoom + "%"); 
     32 
     33  //jQuery('#bp_cla span').text(src_info_1 +"    "+ zoom + "%"); 
    3334    jQuery('#bp_cla span').text(zoom+"%" ); 
    3435    bp_scr = jQuery('#bp_img_cla'); 
     
    9192    if (fade_in == 0) { 
    9293        jQuery(Parent).css({ opacity: "1" }); 
     94 
     95      jQuery("#theImg").css({ opacity: "1" }); 
     96      jQuery("#imageTitleContainer").css({ opacity: "1" }); 
     97      jQuery("#theImageAndTitle").css({ opacity: "1" }); 
     98 
     99       
     100 
     101 
    93102    } else { 
    94103    jQuery(Parent).animate({ opacity: "1" }, 
     
    96105                                         function (i) { 
    97106                                           jQuery(Parent).css({ opacity: "1" }); 
     107                                           jQuery("#theImg").css({ opacity: "1" }); 
     108                                           jQuery("#imageTitleContainer").css({ opacity: "1" }); 
     109                                           jQuery("#theImageAndTitle").css({ opacity: "1" }); 
     110 
    98111                                       if (DEBUG_autosize == "true") { 
    99112 
     
    544557         newResize: function () { 
    545558           // 
    546            set_cl(); 
     559           //set_cl(); 
    547560           if (typeof options != "undefined") 
    548561             if (options.imageAutosize) { 
     
    11021115           //=== cadre = theImage 
    11031116           jQuery(Cadre).css({ marginLeft: "auto" }); 
    1104            // jQuery(Cadre).width(Zone_Affichage.width); 
    1105            jQuery(Cadre).css("width", "auto"); 
     1117           jQuery(Cadre).width(Zone_Affichage.width); //centrer simple black 
     1118           // jQuery(Cadre).css("width", "auto"); 
    11061119 
    11071120           if (Type_Img == "panorama" || Type_Img == "pamoorama") { 
     
    12741287             }); 
    12751288             if (theme.match(RegExp("luciano", "g"))) { 
     1289               imgl = 180; 
     1290               l = Zone_Affichage.left; 
     1291 
     1292               jQuery(".imageNumber").css({ left: l + "px" 
     1293 
     1294               }); 
    12761295               jQuery(Parent + " #theImg IMG").css({ height: img_finale.height + "px ", 
    1277                  width: img_finale.width + "px " 
     1296                 width: (img_finale.width - imgl) + "px ", marginTop: "0px" 
    12781297               }) 
    12791298             } 
     
    13441363           zoom = parseInt(zoom * 100); 
    13451364           jQuery('#zoom ').val(zoom); 
    1346            jQuery('#bp_cla span').text(zoom + "%"); 
     1365           set_cl(); 
     1366 
     1367           
    13471368           //  --- r�glage de la hauteur de page en fonction du copyright----------- 
    13481369           if (typeof (pos_copyright) == "undefined") pos_copyright = jQuery("#copyright").infos();