Ignore:
Timestamp:
May 11, 2011, 12:13:49 PM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatibility with theme gally

  • rename lang.php to plugin.lang.php
  • rename jquery.cookies.js to autosize.cookie.js
  • rename jquery.dimensions.js to autosize.dimensions.js
File:
1 edited

Legend:

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

    r10787 r10845  
    6565var Fn;
    6666function conflit(element, nc) {
    67   if(typeof DEBUG != "boolean") DEBUG = false ;
    68     //--- cl_conflit
     67     //--- cl_conflit
    6968    if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {
    7069        ret_element = jQuery(element);
     
    148147
    149148    ret_element = jQuery(element);
    150     if (DEBUG == "true") {
     149 
     150    if (typeof DEBUG_autosize == "boolean" && DEBUG_autosize == "true") {
    151151        retour = (getStackTrace());
    152152        alert("element : " + element + " retour : " + retour + "Fonctions:" + Fn);
     
    165165      jQuery(window).load(function () {
    166166        //============================================================
     167        if(jQuery("#check_auto_w").length>0){
     168        var cl_visible = jQuery("#check_auto_w").get(0).checked;
     169        if (!cl_visible) {
     170          jQuery("#table0 :text[name*='_width'] ").hide();
     171        } else {
     172          jQuery("#table0 :text[name*='_width']    ").show();
     173        }
     174        }
     175        //==============================================================
     176        jQuery("input").click(function () {
     177          if (this.name.match(RegExp("_enabled", "gi"))) {
     178            sel = "[name*=" + this.name + "]";
     179            obj = jQuery("tr" + sel);
     180
     181            if (this.checked)
     182              obj.css({backgroundColor:"green",color:"white"});
     183            else
     184              obj.css({backgroundColor: "red",color:"white"});
     185
     186            return;
     187          }
     188
     189          if (this.name != "check_auto_w") return;
     190
     191          cl_visible = this.checked
     192          if (!cl_visible) {
     193            jQuery("#table0 :text[name*='_width'] ").hide();
     194          } else {
     195            jQuery("#table0 :text[name*='_width'] ").show();
     196          }
     197
     198          return;
     199
     200
     201
     202
     203        });
    167204        jQuery("#icon_gmaps").bind('click', function () {
    168205          //jQuery("#iGMapsIconContent").dialog("open");
    169           if (Version_pwg > '2.2.0' )
    170           return;
     206          if (Version_pwg > '2.2.0')
     207            return;
    171208          jQuery('html,body').stop().scrollTop(0);
    172209          jQuery('html,body').stop().scrollLeft(0);
     
    455492    if (state == "") {
    456493
    457         if ( DEBUG == "true") {
     494      if (typeof DEBUG_autosize == "boolean" && DEBUG_autosize == "true") {
    458495            Fn = all_functions.join('\n');
    459496            try {
Note: See TracChangeset for help on using the changeset viewer.