Changeset 7542


Ignore:
Timestamp:
Nov 1, 2010, 5:58:25 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] fix bug with pamooramic...

Location:
extensions/Autosize
Files:
2 edited

Legend:

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

    r7538 r7542  
    11//==== autosize  remplace $(... avec jQuery( ====
    22var d1 = 0;
    3 var init_tb = 0;
    4 
    5 jQuery(window).load(function () {
    6     if (jQuery("#theImage").css("position") == "relative") {
    7         //==== compatibilité Gally/LLGBO ===
    8         //--- passage relative ==> static ===/
    9         jQuery("#theImage").css("position", "static");
    10     }
    11     tp = typeof (Browser);
    12     if (tp !="undefined")
    13         if (Browser.loaded == true) {
    14             n = Browser;
    15         }
    16     });
    17 
    18 
    19     function $(element, nc) {
     3var init_tb = 0;             
     4
     5
     6 function $(element, nc) {
     7                  return conflit(element, nc);
     8              }
     9
     10jQuery(document).ready(
     11
     12      function (jQuery) {
     13
     14
     15
     16           tpj = jQuery("#pamoorama");
     17          if (tpj.length > 0) {             }
     18          jQuery(window).load(function () {
     19              if (jQuery("#theImage").css("position") == "relative") {
     20                  //==== compatibilité Gally/LLGBO ===
     21                  //--- passage relative ==> static ===/
     22                  jQuery("#theImage").css("position", "static");
     23              }
     24
     25
     26              tp = typeof (Browser);
     27              if (tp != "undefined")
     28                  if (Browser.loaded == true) {
     29                      n = Browser;
     30                  }
     31                  function $(element, nc) {
     32                      return conflit(element, nc);
     33                  }
     34             
     35          });
     36
     37      })
     38;
     39    function conflit(element, nc) {
    2040        //============== détection framework ==================
    2141        var tp1 = typeof (MooTools);
     
    203223        }
    204224        //========== test jQuery ? ==============
    205 
     225        if (tpe == "string")
     226            if (element.match(RegExp("^#", "g")) ) {
     227                return new_element;
     228            }
    206229        if (jq.match(RegExp("^#", "g")) || jq == "html") {
    207230            return new_element;
  • extensions/Autosize/main.inc.php

    r7538 r7542  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.2.9
     4Version: 1.2.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
     
    2222
    2323//add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),40 );
    24 add_event_handler('loc_begin_index', array(&$autosize_controler, 'cl_autosize_script'),51 );
     24
     25//---- Categorie ----
     26//add_event_handler('loc_begin_index', array(&$autosize_controler, 'cl_autosize_script'),51 );
     27
    2528//add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),40 );
    2629
Note: See TracChangeset for help on using the changeset viewer.