Changeset 7672


Ignore:
Timestamp:
Nov 6, 2010, 5:16:46 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] fix display time(to test!)

Location:
extensions/Autosize
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/conflit.js

    r7669 r7672  
    33var init_tb = 0;
    44//===================================================
     5 
    56function $(element, nc) {
    67   return conflit(element, nc)
     
    3435
    3536//alert(retour);
    36  if (retour.match(RegExp("jquery|switchmenu|gmaps", "gi"))) {
     37if (retour.match(RegExp("jquery|switchmenu|gmaps|switchInterface|gally", "gi"))) {
    3738    return jQuery(element);
    3839}
     
    8485        return jQuery().$Prototype(element);
    8586    }
    86 
     87    if (element == "document") return jQuery(element);
    8788    alert(retour);
    8889
    8990    retour= jQuery(element);
    90  return retour;
     91    return retour;
     92
     93
    9194         return jQuery().$Pamoorama(element);
    9295           
    9396              }
    94 //============================================================
    95  
    96 jQuery(document).ready(
     97              //============================================================
     98
     99              jQuery(document).ready(
    97100      function (jQuery) {
    98            tpj = jQuery("#pamoorama");
    99           if (tpj.length > 0) {             }
     101
     102          tpj = jQuery("#pamoorama");
     103          if (tpj.length > 0) { }
    100104          jQuery(window).load(function () {
     105
     106              function $(element, nc) {
     107                  return conflit(element, nc);
     108              }
     109              tpfn=typeof( inittoolbar);
     110
     111              if (tpfn == "function") inittoolbar();
     112              jQuery("#imageToolBar").css({ position: "relative", top: "0px" });
     113             
     114
    101115              if (jQuery("#theImage").css("position") == "relative") {
    102116                  //==== compatibilité Gally/LLGBO ===
    103117                  //--- passage relative ==> static ===/
    104118                  jQuery("#theImage").css("position", "static");
     119                  jQuery("#imageToolBar").css({ position: "relative", top: "0px" });
    105120              }
    106                   function $(element, nc) {
    107                       return conflit(element, nc);
    108                     }
    109              
     121 jQuery(window).resize();
    110122          });
    111123
  • extensions/Autosize/main.inc.php

    r7669 r7672  
    2121//add_event_handler('render_element_content', array(&$obj, 'paMOOramics_load'),41,2);
    2222// add_event_handler('render_element_content', array(&$autosize_controler, 'cl_autosize_script'),42,2 );
    23 // add_event_handler('picture_pictures_data', array(&$autosize_controler, 'cl_autosize_script_2'),50 );
     23 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_2'),20 );
    2424
    2525//=================================================================================================
    2626//add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),40 );
    2727
    28 //---- Categorie - attention Gmaps ne marche plus($.ajax)---
     28//---- Categorie ---
    2929 add_event_handler('loc_begin_index', array(&$autosize_controler, 'cl_autosize_script'),51 );
    3030
Note: See TracChangeset for help on using the changeset viewer.