Changeset 868


Ignore:
Timestamp:
05/19/09 09:53:58 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #513 - Problemas no cadastro de participantes externos.O cadastro de participantes externos, sendo habilitado e não informado uma organização, aparece item em branco para o usuário.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/js/load.js

    r815 r868  
    474474                { 
    475475                        var element = arguments[0];  
    476                         var orgPartExternal = externalParticipantsJabberit.split(","); 
    477                          
    478                         var _splash = top.document.createElement('span'); 
    479                                 _splash.setAttribute('id','fast_splash_jabberit'); 
    480                                 _splash.style.backgroundColor = 'dedede'; 
    481                                 _splash.style.position = 'absolute'; 
    482                                 _splash.style.display = 'block'; 
    483                                 _splash.style.width = '200px'; 
    484                                 _splash.style.height = 'auto'; 
    485                                 _splash.style.margin = ( !is_ie ) ? '0px 5px 0px 130px' : '20px 0px 0px 0px'; 
    486                                 _splash.style.zIndex = '99999'; 
    487                                 _splash.style.border = '2px outset #000'; 
    488                                 _splash.onmouseout = function(){ _showhidden.hiddenObject(false); }; 
    489                                 _splash.onmouseover = function(){ _showhidden.hiddenObject(true); }; 
    490                          
    491                                 for(var i = 0; i < orgPartExternal.length; i++) 
    492                                         _splash.innerHTML += '<div style="margin:5px;border-bottom:1px dashed #000;cursor:default !important;">' + (i + 1) + " - " + orgPartExternal[i] + '</div>';      
     476 
     477                        if( externalParticipantsJabberit != "" ) 
     478                        {                        
     479                                var orgPartExternal = externalParticipantsJabberit.split(","); 
    493480                                 
    494                         _showhidden.action('onmouseover', 'onmouseout', _splash); 
    495                         element.appendChild(_splash); 
     481                                var _splash = top.document.createElement('span'); 
     482                                        _splash.setAttribute('id','fast_splash_jabberit'); 
     483                                        _splash.style.backgroundColor = 'dedede'; 
     484                                        _splash.style.position = 'absolute'; 
     485                                        _splash.style.display = 'block'; 
     486                                        _splash.style.width = '200px'; 
     487                                        _splash.style.height = 'auto'; 
     488                                        _splash.style.margin = ( !is_ie ) ? '0px 5px 0px 130px' : '20px 0px 0px 0px'; 
     489                                        _splash.style.zIndex = '99999'; 
     490                                        _splash.style.border = '2px outset #000'; 
     491                                        _splash.onmouseout = function(){ _showhidden.hiddenObject(false); }; 
     492                                        _splash.onmouseover = function(){ _showhidden.hiddenObject(true); }; 
     493                                 
     494                                        for(var i = 0; i < orgPartExternal.length; i++) 
     495                                                _splash.innerHTML += '<div style="margin:5px;border-bottom:1px dashed #000;cursor:default !important;">' + (i + 1) + " - " + orgPartExternal[i] + '</div>';      
     496                                         
     497                                _showhidden.action('onmouseover', 'onmouseout', _splash); 
     498                                element.appendChild(_splash); 
     499                        } 
    496500                } 
    497501        } 
Note: See TracChangeset for help on using the changeset viewer.