Ignore:
Timestamp:
Nov 28, 2010, 4:36:17 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] setup cl_conflit

Location:
extensions/Autosize/js
Files:
2 edited

Legend:

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

    r7899 r7912  
    184184
    185185            info_image = jQuery(Parent).infos();
    186             if (info_image.height==0) {
    187                 Parent = "#theImageBox";
    188             }
    189 
    190 
    191186            p0 = jQuery(Parent);
    192 
    193             if (p0.length > 0) {
    194              
    195  
     187            if (p0.length > 0) {   
     188
    196189                //======================================================
    197190                if (theme.match("gally", "gi"))
     
    199192                        if (typeof (currentTab) == "undefined") inittoolbar();
    200193                        else initializeImageMode("resize");
    201                     };
     194                   
    202195
    203196                    if (info_image.position != "static") {
     
    206199                    jQuery(Parent).css({ position: "static" } );
    207200                    jQuery("#imageToolBar").css({ position: "relative", top: "0px" });
     201                    };
    208202                }
    209203            }
     
    429423          }
    430424          //window_1290934905697_top
    431           if (fn.match(RegExp("window_|WindowUtilities", "gi"))) {
     425          if (fn.match(RegExp("window_..|WindowUtilities", "gi"))) {
    432426              states.push('rv_gmaps');
    433427              break;
     
    583577function save_framework(page) {
    584578    try {
    585         Conflit = { version: Version, name: cl_plugin };
     579        Conflit = { version: cl_version, name: cl_plugin };
    586580    } catch (e) {
    587581
  • extensions/Autosize/js/jquery.dimensions.js

    r7899 r7912  
    3131                    var torl = name == 'Height' ? 'Top' : 'Left',
    3232                        borr = name == 'Height' ? 'Bottom' : 'Right';
    33                     options = jQuery.extend({ margin: false },
    34                                                 options || {});
     33                    options = options || false;
     34                    options = jQuery.extend({ margin: options } );
     35
    3536                    var val = this.is(':visible') ? this[0]['offset' + name] :
    3637                        num(this,
     
    3940                        num(this, 'border' + borr + 'Width') +
    4041                        num(this, 'padding' + torl) +
    41                         num(this, 'padding' + borr);
     42                        num(this, 'padding' + borr)
     43
     44                        ;
    4245                    return val + (options.margin ? (num(this, 'margin' + torl) + num(this, 'margin' + borr)) : 0);
    4346                };
Note: See TracChangeset for help on using the changeset viewer.