Ignore:
Timestamp:
Mar 7, 2012, 4:49:55 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with theme simple

File:
1 edited

Legend:

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

    r12774 r13511  
    8787        return
    8888    }
     89 
     90    nu_img++;
     91   
    8992    */
    90     nu_img++;
    9193  if (typeof fade_in == "undefined") fade_in = 0;
    9294    if (fade_in == 0) {
     
    124126
    125127    //   if (nu_img > 1) return;
     128  if(typeof stb!="undefined")
     129    stb.stop().fadeTo(3500, 0);
     130
     131 jQuery("#theImage").trigger('ON');
    126132
    127133  if (typeof The_MainImage == "undefined") return true;
    128134  if (The_MainImage == null) return;
    129 
    130135  if (jQuery(The_MainImage).length > 0) {
    131 
    132   if(typeof stb!="undefined")
    133  stb.stop().fadeTo(3500, 0);
    134 
     136    if (typeof img_h == "undefined") {
    135137    img_h = jQuery(The_MainImage).height();
    136138    img_w = jQuery(The_MainImage).width();
     139      }
    137140    jQuery("#src_img_h").val(img_h);
    138141    jQuery("#src_img_w").val(img_w);
     
    503506         old_window = { width: 0, height: 0 };
    504507         jQuery().newResize();
    505          jQuery("#theImage").trigger('ON');
     508         Wait_Affichage();
     509
    506510
    507511
     
    557561           if (typeof options != "undefined")
    558562             if (options.imageAutosize) {
    559                Wait_Affichage();
     563               // Wait_Affichage();
    560564               return true; //stripped
    561565             }
    562566
    563567             if (typeof Bandeau_bas == "undefined")
    564                return;
     568             return true;
    565569
    566570           if (typeof cl_visible == "undefined") return true;
     
    574578           if (Math.abs(n) < 1) {
    575579             n = winheight - old_window.height;
    576              if (Math.abs(n) < 1)
    577                return true;
     580             if (Math.abs(n) < 1) {
     581               n = winheight - old_window.height;
     582               //return false;
     583
     584             }
    578585           }
    579586           if (Math.abs(n) > 30) nu_img = 0;
     587           nu_img++;
    580588           //if (nu_img > 10) return true;
    581589           old_window = jQuery(window).infos();
     
    14731481           }
    14741482
    1475            Wait_Affichage();
     1483           //Wait_Affichage();
    14761484
    14771485           return true;
     
    19871995    }
    19881996
    1989     // Wait_Affichage();
    19901997  });
    19911998
     
    20012008    if (nu_img == "") nu_img = 7;
    20022009    jQuery(jQuery('.debug').get(nu_img)).trigger('ON');
    2003     // Wait_Affichage();
     2010    jQuery().newResize();
    20042011  });
    20052012  // Custom Event, ON to turn on a debug.
Note: See TracChangeset for help on using the changeset viewer.