Changeset 7220


Ignore:
Timestamp:
Oct 16, 2010, 12:57:44 PM (14 years ago)
Author:
cljosse
Message:

[Autosize][beta]fix bugs.


Location:
extensions/Autosize
Files:
3 edited

Legend:

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

    r7193 r7220  
    3333                global $infos_message,$erreur_message;
    3434                global  $conf,$lang ,$user,$userdata;
    35                 $image['width']="1200";
    36                                   $asp['image_name'] = $image['name'];
    37                   $asp['width'] = $image['width'];
    38                   $asp['height'] = $image['height'];
    39                
    4035
    4136                load_language('lang', AUTOSIZE_PATH);
  • extensions/Autosize/js/Affiche_script.js

    r7193 r7220  
    131131            };
    132132        //===================================================================   
    133  
     133
    134134        var old_h = 0;
    135135        var rapport = -1;
     
    310310            switch (Type_Img) {
    311311                case "map":
    312                     var info_image = jQuery("#mapPicture").info();
    313                     marge_left = info_image.width;
    314 
    315                     if (theme.match(RegExp("gally", "g"))) {
    316                         jQuery("#map").css("top", "30px");
    317                     }
    318                     jQuery("#map").css("left", info_image.width + "px");
     312                    var info_image = jQuery("#map").info();
     313
     314                    var info_map = jQuery("#mapPicture").info();
     315
     316                    marge_left = info_map.width;
     317                    jQuery("#map").css("left", marge_left);
     318
    319319                    var TheImg = jQuery("#map").get(0);
    320320                    info_image = jQuery("#map").info();
     
    572572
    573573                if (theme.match(RegExp("gally", "g"))) {
    574                     Image_height -= "30";
     574                    //  Image_height -= "30";
    575575                }
    576576
     
    729729                jQuery("object").height(Image_height);
    730730            } else if (Type_Img == "panorama") {
    731 
    732 
     731           
    733732                //      jQuery(TheImg).panorama2(img_finale.height, img_finale.width);
    734733                jQuery(TheImg).height(img_finale.height);
     
    767766                h_frame = jQuery("#pamoorama").width();
    768767                if (old_w == jQuery(window).width() && old_h == jQuery(window).height()) {
    769                      
    770                      if (info_pamoorama_outter.width == 0)
    771                          setTimeout("wait_Timer()", 100);
     768
     769                    if (info_pamoorama_outter.width == 0)
     770                        setTimeout("wait_Timer()", 100);
    772771                    //     jQuery(TheImg).css("zoom", zoom);
    773772                }
     
    782781
    783782            } else {
    784 
     783                //===map ? ===
    785784                jQuery(TheImg).height(img_finale.height);
    786785                jQuery(TheImg).width(img_finale.width);
     
    819818
    820819    } // function
    821 );                                                                                                                                                                                                        // ready
     820);                                                                                                                                                                                                           // ready
    822821
    823822/* Extension
  • extensions/Autosize/main.inc.php

    r7193 r7220  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.2.0
     4Version: 1.1.0
    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
     
    1212if (!defined('AUTOSIZE_PATH'))
    1313define(  'AUTOSIZE_PATH',   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' );
    14 
    1514include_once(AUTOSIZE_PATH.'autosize.inc.php');
    16 
    1715$autosize_controler = new autosize_controler();
    1816add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 95 );
    1917add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin')  );
    20 
    21 
    22  add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),50 );
    23 
    24 
    25 
     18add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),50 );
     19 
    2620?>
Note: See TracChangeset for help on using the changeset viewer.