Ignore:
Timestamp:
10/09/12 09:01:54 (12 years ago)
Author:
rafaelgobara
Message:

Ticket #3080 - Ajuste no selectbox e no lightbox do organograma

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/js/scriptaculous/lightbox.js

    r795 r7372  
    133133                info = "<div id='lbContent'></div>"; 
    134134                new Insertion.Before($('lbLoadMessage'), info); 
    135                 this.content(); 
     135 
     136                if (typeof(this.content) == "function")  
     137                { 
     138                        this.content(); 
     139                } 
     140                else 
     141                { 
     142                        this.content; 
     143                } 
     144 
    136145                $('lightbox').className = "done"; 
    137146                //this.actions(); 
     
    182191        if (!$('overlay')) 
    183192                addLightboxMarkup(); 
     193         
    184194        lbox = document.getElementsByClassName('lbOn'); 
     195 
    185196        for(i = 0; i < lbox.length; i++) { 
    186197                valid = new lightbox(lbox[i]); 
     
    194205        bod                             = document.getElementsByTagName('body')[0]; 
    195206        overlay                         = document.createElement('div'); 
    196         overlay.id              = 'overlay'; 
     207        overlay.id                      = 'overlay'; 
    197208        lb                                      = document.createElement('div'); 
    198209        lb.id                           = 'lightbox'; 
    199         lb.className    = 'loading'; 
    200         lb.innerHTML    = '<div id="lbLoadMessage">' + 
     210        lb.className            = 'loading'; 
     211        lb.innerHTML            = '<div id="lbLoadMessage">' + 
    201212                                                  '<p>Loading</p>' + 
    202213                                                  '</div>'; 
     214 
    203215        bod.appendChild(overlay); 
    204216        bod.appendChild(lb); 
Note: See TracChangeset for help on using the changeset viewer.