Changeset 7741


Ignore:
Timestamp:
Nov 11, 2010, 10:57:42 AM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] save

Location:
extensions/Autosize
Files:
3 edited

Legend:

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

    r7740 r7741  
    153153        static public function cl_autosize_script()
    154154        {
    155            global  $template,$user,$conf,$picture ;
    156 
     155           global  $template,$user,$conf,$picture ,$page;
     156           //userDefManage ??
    157157                $my_path =  basename(dirname(__FILE__)).'/' ;
    158158            $my_path = dirname(__FILE__).'/';
    159159                        $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    160160                        $template->func_known_script(array('id'=>'jquery', 'src'=>get_root_url().'themes/default/js/jquery.packed.js'), $smarty);
     161                $template->func_known_script(array('id'=>'jquery', 'src'=>$my_path. '/js/jconflit.js'), $smarty);
     162       
     163
     164
     165
    161166                $template->set_filenames(
    162167                     array('autosize_init'=>$my_path. "template/conflit.tpl" 
     
    169174                                                'AUTOSIZE_ROOT' => AUTOSIZE_PATH)
    170175                                                 );
    171 
     176if(     $page['body_id'] == 'theAdminPage' ) return ;
    172177                   return $template->parse( 'autosize_init', false);
    173178
  • extensions/Autosize/js/Affiche_script.js

    r7740 r7741  
    10061006
    10071007                     });
    1008                      jQuery("#Debug1").text("info_theImage.height : " + info_theImage.height);
     1008                     jQuery("#Debug1").text("img_finale.heightt : " + img_finale.height);
    10091009                     //===================================================
    10101010                     jQuery("#Debug2").css({ position: "absolute",
  • extensions/Autosize/js/conflit.js

    r7740 r7741  
    2222var ret_element = "";
    2323if (retour.match(RegExp("jQuery", "gi"))) {
    24         ret_element = jQuery(element);
     24    ret_element = jQuery(element);
     25}
     26        else if (retour.match(RegExp("rv_gmaps", "gi"))) {
     27        ret_element = jQuery().$Prototype(element);
    2528    } else if (retour.match(RegExp("GMaps", "gi"))) {
    2629        ret_element = jQuery(element);
     
    2932} else if (retour.match(RegExp("luciano", "gi"))) {
    3033    ret_element = jQuery().$Luciano(element);
    31 } else if (retour.match(RegExp("rv_gmaps", "gi"))) {
    32         ret_element = jQuery().$Prototype(element);
     34
    3335}else if (retour.match(RegExp("jQuery", "gi"))) {
    3436        ret_element = jQuery(element);
Note: See TracChangeset for help on using the changeset viewer.