Ignore:
Timestamp:
Sep 24, 2010, 6:15:20 PM (14 years ago)
Author:
cljosse
Message:

[Autosize]Improvement 'panoramas' compatibility


File:
1 edited

Legend:

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

    r7012 r7013  
    1 
     1
    22//==== remplace $(... avec jQuery( ====
    33 var ov_map;
     
    88     new_element = jQuery(element);
    99     jq = new_element.selector;
    10      
     10     if (jQuery("#Panorama").length) {
     11
     12         return new_element;
     13     }
    1114     afq = jQuery(document).data("initialized") ; //2
    1215     if (element == window && afq != 1)
     
    3336            }else if( MooTools.version == "1.11") {
    3437            B = element;
    35             if (!B) {
    36                 if (typeof (B) == "boolean") return null;
    37                 return jQuery();
    38             }
     38                if (!B) {
     39                        if (typeof (B) == "boolean") return null;
     40                        return jQuery();
     41                }
    3942                if (B.htmlElement) {
    4043                    return Garbage.collect(B);
    4144
    4245                }
    43                 if ([window, document].contains(B)) {
    44                 return B;
    45                 }
     46                if ([window, document].contains(B)) { return B; }
    4647                var A = $type(B);
    4748                if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; }
     
    123124
    124125            Type_Img = "pamoorama";
     126        } else if (jQuery("#Panorama").length) {
     127
     128            Type_Img = "panorama";
     129            return;
    125130        } else if (jQuery("#theImage").find("img").length > 0) {
    126131            Type_Img = "img";
     
    356361
    357362            } else if (theme.match(RegExp("luciano", "g"))) {
    358                 jQuery("#theImage").height(Image_height );
     363                jQuery("#theImage").height(Image_height);
    359364            }
    360365        } catch (e) {
Note: See TracChangeset for help on using the changeset viewer.