Changeset 12652 for extensions
- Timestamp:
- Nov 22, 2011, 11:49:44 AM (12 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r12527 r12652 374 374 { 375 375 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 376 389 $autosize_parametres = unserialize($conf['cl_autosize']); 377 390 // $autosize_parametres = autosize_controler::Get_Options($autosize_parametres,'cl_autosize'); … … 455 468 $infos_message .=l10n("cl_autosize_save_config")."<br>"; 456 469 $autosize_parametres=cl_autosize_Set_Options(); 457 458 if ( isset($autosize_parametres) ) 459 { 460 470 if ( isset($autosize_parametres) ) { 461 471 $query = ' 462 472 UPDATE '.CONFIG_TABLE.' -
extensions/Autosize/js/Affiche_script.js
r12535 r12652 4 4 function Toggle_bp() { 5 5 cl_visible = !cl_visible; 6 set_cl();6 7 7 jQuery().newResize(); 8 8 Wait_Affichage(); 9 set_cl(); 9 10 } 10 11 function set_cl(){ … … 23 24 src_info_1 = src5; 24 25 } 25 26 zoom = jQuery('#zoom ').val() ; 26 27 jQuery('#bp_cla').attr('alt', src_info); 27 28 jQuery('#bp_cla').attr('title', src_info); 28 29 29 30 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 + "%"); 33 34 jQuery('#bp_cla span').text(zoom+"%" ); 34 35 bp_scr = jQuery('#bp_img_cla'); … … 91 92 if (fade_in == 0) { 92 93 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 93 102 } else { 94 103 jQuery(Parent).animate({ opacity: "1" }, … … 96 105 function (i) { 97 106 jQuery(Parent).css({ opacity: "1" }); 107 jQuery("#theImg").css({ opacity: "1" }); 108 jQuery("#imageTitleContainer").css({ opacity: "1" }); 109 jQuery("#theImageAndTitle").css({ opacity: "1" }); 110 98 111 if (DEBUG_autosize == "true") { 99 112 … … 544 557 newResize: function () { 545 558 // 546 set_cl();559 //set_cl(); 547 560 if (typeof options != "undefined") 548 561 if (options.imageAutosize) { … … 1102 1115 //=== cadre = theImage 1103 1116 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"); 1106 1119 1107 1120 if (Type_Img == "panorama" || Type_Img == "pamoorama") { … … 1274 1287 }); 1275 1288 if (theme.match(RegExp("luciano", "g"))) { 1289 imgl = 180; 1290 l = Zone_Affichage.left; 1291 1292 jQuery(".imageNumber").css({ left: l + "px" 1293 1294 }); 1276 1295 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" 1278 1297 }) 1279 1298 } … … 1344 1363 zoom = parseInt(zoom * 100); 1345 1364 jQuery('#zoom ').val(zoom); 1346 jQuery('#bp_cla span').text(zoom + "%"); 1365 set_cl(); 1366 1367 1347 1368 // --- réglage de la hauteur de page en fonction du copyright----------- 1348 1369 if (typeof (pos_copyright) == "undefined") pos_copyright = jQuery("#copyright").infos();
Note: See TracChangeset
for help on using the changeset viewer.