Ignore:
Timestamp:
08/21/07 17:28:27 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

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

    r59 r60  
    1010      try 
    1111      { 
    12                         backFantom = func.newEl('div'); 
     12                        var backFantom = func.newEl('div'); 
    1313                        func.confEl(backFantom, 'id', 'backFantom'); 
    1414                        func.confEl(backFantom, 'style', 'position:absolute;top:0px;left:0px;width:100%;height:100%;z-Index:-1;'); 
    1515 
    16                         test = func.newEl('div'); 
    17                         func.confEl(test, 'id', 'test'); 
    18                         func.confEl(test, 'style', 'visibility: hidden;'); 
    19  
    20                         menu_contato = func.newEl('div'); 
     16                        var menu_contato = func.newEl('div'); 
    2117                        func.confEl(menu_contato, 'id', 'menu_contato'); 
    2218                        func.confEl(menu_contato, 'class', 'menu_im'); 
    2319                        func.confEl(menu_contato, 'style', 'position:absolute;z-index:99999'); 
    2420 
    25                         emotions = func.newEl('div'); 
     21                        var emotions = func.newEl('div'); 
    2622                        func.confEl(emotions, 'id', 'shared_emotions'); 
    2723                        func.confEl(emotions, 'class', 'emotionFrame'); 
    2824                        func.confEl(emotions, 'style', 'position:absolute;padding:1px;left:350px;visibility:hidden;top:0px'); 
    2925 
    30                         font_name = func.newEl('div'); 
     26                        var font_name = func.newEl('div'); 
    3127                        func.confEl(font_name, 'id', 'shared_fontName'); 
    3228                        func.confEl(font_name, 'class', 'statusMenu'); 
    3329                        func.confEl(font_name, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 
    3430 
    35                         font_size = func.newEl('div'); 
     31                        var font_size = func.newEl('div'); 
    3632                        func.confEl(font_size, 'id', 'shared_fontSize'); 
    3733                        func.confEl(font_size, 'class', 'statusMenu'); 
    3834                        func.confEl(font_size, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 
    3935 
    40                         font_color = func.newEl('div'); 
     36                        var font_color = func.newEl('div'); 
    4137                        func.confEl(font_color, 'id', 'shared_fontColor'); 
    4238                        func.confEl(font_color, 'class', 'statusMenu'); 
    4339                        func.confEl(font_color, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 
    4440 
    45                         font_style = func.newEl('div'); 
     41                        var font_style = func.newEl('div'); 
    4642                        func.confEl(font_style, 'id', 'shared_fontStyle'); 
    4743                        func.confEl(font_style, 'class', 'statusMenu'); 
    4844                        func.confEl(font_style, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 
    4945 
    50                         func.insEl(backFantom, test, menu_contato, emotions, font_name, font_size, font_color, font_style, false); 
     46                        func.insEl(backFantom, menu_contato, emotions, font_name, font_size, font_color, font_style, false); 
    5147 
    5248                        emotions.innerHTML = Templates.emotions(); 
     
    5652                        font_style.innerHTML = Templates.font_style(); 
    5753 
    58                         pId = 'contacts'; 
    59  
    60                         main_menu_all = func.newEl('div'); 
     54                        var pId = 'contacts'; 
     55 
     56                        var main_menu_all = func.newEl('div'); 
    6157                        func.confEl(main_menu_all, 'style', 'margin: 3px;'); 
    6258 
    63                         main_menu_head = func.newEl('div'); 
     59                        var main_menu_head = func.newEl('div'); 
    6460                        func.confEl(main_menu_head, 'id', pId + '_im_window_body_inner_head'); 
    6561                        func.confEl(main_menu_head, 'style', 'margin: 0px 0px 3px 0px; border: 1px solid #809aa9; display: block;'); 
    6662 
    67                         main_menu_vcard = func.newEl('div'); 
     63                        var main_menu_vcard = func.newEl('div'); 
    6864                        func.confEl(main_menu_vcard, 'id', 'im_vcard_contacts'); 
    6965                        func.confEl(main_menu_vcard, 'style', 'display: none;'); 
    7066 
    71                         main_menu_body = func.newEl('div'); 
     67                        var main_menu_body = func.newEl('div'); 
    7268                        func.confEl(main_menu_body, 'id', 'div_contacts'); 
    7369                        func.confEl(main_menu_body, 'style', 'border: 1px solid #809aa9;'); 
     
    7571                        func.insEl(main_menu_head, main_menu_vcard, main_menu_body, main_menu_all); 
    7672 
    77                         main_menu_head_picture = func.newEl('img'); 
     73                        var main_menu_head_picture = func.newEl('img'); 
    7874                        func.confEl(main_menu_head_picture, 'id', pId + '_avatar'); 
    7975                        func.confEl(main_menu_head_picture, 'src', img_photo.src); 
    8076                        func.confEl(main_menu_head_picture, 'style', 'float: left; height: 65px; margin: 2px; width: 49px;'); 
    8177 
    82                         main_menu_head_name = func.newEl('span'); 
     78                        var main_menu_head_name = func.newEl('span'); 
    8379                        func.confEl(main_menu_head_name, 'id', 'span_nickname'); 
    84                         main_menu_head_name_txt = document.createTextNode(" your nickname"); 
     80                        var main_menu_head_name_txt = document.createTextNode(" your nickname"); 
    8581                        func.insEl(main_menu_head_name_txt, main_menu_head_name); 
    8682 
    87                         br1 = func.newEl('br'); 
    88  
    89                         main_menu_head_message = func.newEl('span'); 
     83                        var br1 = func.newEl('br'); 
     84 
     85                        var main_menu_head_message = func.newEl('span'); 
    9086                        func.confEl(main_menu_head_message, 'id', 'span_message'); 
    91                         main_menu_head_message_txt = document.createTextNode(' your message'); 
     87                        var main_menu_head_message_txt = document.createTextNode(' your message'); 
    9288                        func.insEl(main_menu_head_message_txt, main_menu_head_message); 
    9389 
    94                         br2 = func.newEl('br'); 
     90                        var br2 = func.newEl('br'); 
    9591 
    9692                        func.insEl(main_menu_head_picture, main_menu_head_name, br1, main_menu_head_message, br2, main_menu_head); 
    9793 
    98                         main_menu_head_div = func.newEl("div"); 
     94                        var main_menu_head_div = func.newEl("div"); 
    9995                        func.confEl(main_menu_head_div,'id','menu_preferences'); 
    10096                        func.confEl(main_menu_head_div,'class','menu_im'); 
     
    122118                        main_menu_head.innerHTML += '<span id="span_menu_pref" style="float: left;" onmousedown="IM.menu_preferences(event ,\'menu_preferences\'); document.oncontextmenu = new Function(\'return false\');"></span>'; 
    123119 
    124                         br3 = func.newEl('br'); 
     120                        var br3 = func.newEl('br'); 
    125121                        func.confEl(br3, 'style', 'clear: both'); 
    126122 
    127                         div_ie = func.newEl('div'); 
     123                        var div_ie = func.newEl('div'); 
    128124 
    129125                        func.insEl(br3, div_ie, main_menu_head); 
     
    468464   "showWindowItem" : function(pId) 
    469465   { 
     466      /* 
     467       * Não tire esta linha 
     468       * Isso deve estar aqui para a janela 'oculta' 
     469       * não 'piscar' na tela no momento que é criada. 
     470       */ 
     471      func.byId(pId + '_im_window_body_inner').style.overflow = 'auto'; 
     472 
    470473      if ( (name_document = document.getElementById(pId + '_divEdita')) ) 
    471474      { 
     
    488491      dd.elements[pId + "_im_window_resize"].show(); 
    489492      dd.elements[pId + "_im_window_movable"].show(); 
     493       
    490494   }, 
    491495 
     
    523527 
    524528   "windowMaximizeRestore" : function(objName) 
    525    { 
     529   {  
    526530      with(objName) 
    527531         objName = substr(0, indexOf('_im')); 
     
    681685         // Photo Ldap; 
    682686         this.get_photo_ldap(pId); 
    683  
     687                 
    684688         name_document = document.getElementById(pId + '_edita'); 
    685689         name_document.contentWindow.document.write('<html><body id="' + pId.replace('@', '_at_').replace(/\./g, '_dot_') + '" style="margin:0px;padding:0px"></body></html>'); 
Note: See TracChangeset for help on using the changeset viewer.