Changeset 321


Ignore:
Timestamp:
06/18/08 11:29:07 (16 years ago)
Author:
niltonneto
Message:

Correçoes

Location:
trunk/instant_messenger
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/js/client.js

    r318 r321  
    148148                { 
    149149                        if ( !_disconnected ) 
    150                                 _conn.go('$this.Ujabber.getContacts'); 
     150                        { 
     151                                _conn.go('$this.Ujabber.getContacts', 
     152                                        function(data) 
     153                                        { 
     154                                                if ( data == 'disconnected' ) 
     155                                                        setTimeout(_contacts, 3000); 
     156                                        } 
     157                                ); 
     158                                setTimeout(function() 
     159                                { 
     160                                        var _contact_list = top.document.getElementById('im_contact_list'); 
     161                                        if ( !_contact_list ) 
     162                                                _contacts(); 
     163                                }, 5000); 
     164                        } 
    151165                } 
    152166 
  • trunk/instant_messenger/js/dragdrop.js

    r318 r321  
    8888                        var x = mousePos.x - _element.mouseOffset.x; 
    8989                        var y = mousePos.y - _element.mouseOffset.y; 
    90                         _element.style.left = ( x < 0 ) ? 0 : x; 
    91                         _element.style.top  = ( y < 0 ) ? 0 : y; 
     90                        _element.style.left = (( x < 0 ) ? 0 : x) + 'px'; 
     91                        _element.style.top  = (( y < 0 ) ? 0 : y) + 'px'; 
    9292                } 
    9393        } 
     
    152152                        return false; 
    153153 
    154                 _pObject.style.position = 'absolute'; 
    155154                _pObject.setAttribute('dragdrop_parent', 'true'); 
    156155 
  • trunk/instant_messenger/js/jabber.js

    r318 r321  
    350350                                                        while ( el.getAttribute('jid') ) 
    351351                                                        { 
    352                                                                 if ( el.style.backgroundImage.indexOf('unavailable') < 0 ) 
    353                                                                         el.style.display = _display; 
     352                                                                if ( _display == 'block' ) 
     353                                                                { 
     354                                                                        var _show_all = _cookies.get('IM_unavailable'); 
     355                                                                        if ( (el.style.backgroundImage.indexOf('unavailable') > -1) && (_show_all == 'hidden') ) 
     356                                                                                _display = 'none'; 
     357                                                                } 
     358                                                                el.style.display = _display; 
    354359                                                                el = el.nextSibling; 
    355360                                                                if ( el && el.nextSibling ) 
  • trunk/instant_messenger/js/windows.js

    r318 r321  
    2121                        _window.setAttribute('id', pId + '__window_master'); 
    2222                        _window.setAttribute('class', 'window'); 
     23                        _window.setAttribute('className', 'window'); 
    2324 
    2425                        _window = this._TARGET.appendChild(_window); 
     
    286287        function _position(pX, pY) 
    287288        { 
    288                 this.wm.style.position = 'absolute'; 
     289                // for IE 
     290                //if ( window.ActiveXObject ) 
     291                //      this.wm.style.position = 'absolute'; 
    289292 
    290293                if ( typeof pX == 'number' ) 
  • trunk/instant_messenger/templates/default/css/window.css

    r318 r321  
    1313        font: 10pt Verdana, Arial, Helvetica, sans-serif; 
    1414        margin: 0px; 
    15         position: absolute; 
     15        position:fixed; 
     16} 
     17 
     18* html .window 
     19{ 
     20        position:absolute; 
    1621} 
    1722 
Note: See TracChangeset for help on using the changeset viewer.