Changeset 2572


Ignore:
Timestamp:
04/16/10 17:36:06 (14 years ago)
Author:
amuller
Message:

Ticket #1036 - Colocando semicolons nos finais das atribuições

Location:
trunk/expressoMail1_2/js/jscode
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/jscode/DropDownContacts.js

    r2561 r2572  
    1616        div_message_scroll = Element('div_message_scroll_'+ fld_id.substring(fld_id.length - 1, fld_id.length)); 
    1717 
    18         var string_contacts = contacts 
     18        var string_contacts = contacts; 
    1919        if (Element(fld_id)) 
    2020                var mail = Element(fld_id).value; 
     
    9191                } 
    9292                //lines = lines + "<tr><td id=td_DD_"+i+" onClick=\"javascript:hideTip();makeMailList('"+match_contacts[i]+"','"+fld_id+"');document.getElementById('" + fld_id + "').focus();\" onmouseover=\"selectContact("+i+")\">" + match_contacts[i] + "</td></tr>" 
    93                 lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');setTimeout('document.getElementById(\\'"+fld_id+"\\').focus()',300);\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>" 
     93                lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');setTimeout('document.getElementById(\\'"+fld_id+"\\').focus()',300);\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>"; 
    9494                match_cont = ""; 
    9595        } 
     
    128128 
    129129        if (lines != ''){ 
    130                 table_contacts = table_contacts_header + lines + table_contacts_foot 
    131                 doTooltip(posX, posY, table_contacts) 
     130                table_contacts = table_contacts_header + lines + table_contacts_foot; 
     131                doTooltip(posX, posY, table_contacts); 
    132132        } 
    133133        else 
     
    140140{ 
    141141        list = Element(fld_id); 
    142         for (var i = list.value.length; ((i!=0) && (list.value.substring(i-1,i)!=',')); i--){} 
     142        for (var i = list.value.length; ((i!=0) && (list.value.substring(i-1,i)!=',')); i--) {  }; 
    143143        mail = mail.replace(/&lt;/g,"<"); 
    144144        mail = mail.replace(/&gt;/g,">"); 
     
    183183                while (obj.offsetParent) 
    184184                { 
    185                         curleft += obj.offsetLeft 
     185                        curleft += obj.offsetLeft; 
    186186                        obj = obj.offsetParent; 
    187187                } 
     
    199199                while (obj.offsetParent) 
    200200                { 
    201                         curtop += obj.offsetTop 
     201                        curtop += obj.offsetTop; 
    202202                        obj = obj.offsetParent; 
    203203                } 
  • trunk/expressoMail1_2/js/jscode/InfoContact.js

    r2561 r2572  
    2121        card.innerHTML = "<table onmouseout='InfoContact.timeout_hide=setTimeout(\"InfoContact.hide()\",50);' onmouseover='clearTimeout(InfoContact.timeout_hide);' cellpadding=0 cellspacing=0 width='100%' height='100%'><tr><td valign='center' align='center' id='card_cc_td'></td></tr></table>"; 
    2222        document.body.appendChild(card); 
    23 } 
     23}; 
    2424emInfoContact.prototype.begin = function(td, email){ 
    2525 
     
    3232        } 
    3333        this.timeout = setTimeout("InfoContact.search('"+email+"')",1000);               
    34 } 
     34}; 
    3535 
    3636emInfoContact.prototype.label = function (text){ 
     
    5252        div_label.style.display = ''; 
    5353        setTimeout("InfoContact.hide()",1000); 
    54 } 
     54}; 
    5555 
    5656emInfoContact.prototype.connectVoip = function (phoneUser, typePhone){ 
     
    6262                        alert(get_lang("Requesting a VoIP call")+":\n"+data); 
    6363                } 
    64         } 
     64        }; 
    6565        cExecute ("expressoMail1_2.functions.callVoipConnect&to="+phoneUser+"&typePhone="+typePhone, handler_connectVoip); 
    66 } 
     66}; 
    6767 
    6868emInfoContact.prototype.show = function (data){ 
     
    101101 
    102102        this.timeout_hide = setTimeout("InfoContact.hide()",1000);       
    103 } 
     103}; 
    104104 
    105105emInfoContact.prototype.search = function (email){ 
     
    123123                else 
    124124                        _this.label(email);                      
    125         } 
     125        }; 
    126126         
    127127        if (trustedDomain) 
     
    129129        else 
    130130                _this.label(email); 
    131 } 
     131}; 
    132132 
    133133emInfoContact.prototype.hide = function(){ 
     
    138138        if(Element("card_cc"))  
    139139                Element("card_cc").style.display = "none";       
    140 } 
     140}; 
    141141 
    142142emInfoContact.prototype.sendMail = function(name, email){ 
     
    144144        InfoContact.hide(); 
    145145        new_message("new","null"); 
    146 } 
     146}; 
    147147 
    148148emInfoContact.prototype.openChat = function(event, email){ 
    149149        IM.action_button(event, '1', email ,false); 
    150 } 
     150}; 
    151151 
    152152emInfoContact.prototype.verifyIM = function(uid, email){ 
     
    172172 
    173173        return _return; 
    174 } 
     174}; 
    175175/* Build the Object */ 
    176176var emInfoContact; 
  • trunk/expressoMail1_2/js/jscode/color_palette.js

    r2517 r2572  
    1212                                                new Array("#000000","#330000","#663300","#663333","#333300","#003300","#003333","#000066","#330099","#330033")); 
    1313        this.buildPalette(); 
    14 } 
     14}; 
    1515 
    1616// funçoes 
     
    2020        document.getElementById("palettecolor").style.visibility="hidden"; 
    2121        mainField.focus(); 
    22 } 
     22}; 
    2323 
    2424cColorPalette.prototype.repos = function (intElemScrollTop) 
     
    2626        var new_pos = findPosY(Element("forecolor")) - intElemScrollTop + 20; 
    2727        this.div.style.top = new_pos; 
    28 } 
     28}; 
    2929 
    3030cColorPalette.prototype.loadPalette = function (id) 
     
    4848                this.div.style.left = findPosY(Element("forecolor"))+ 227; 
    4949        } 
    50 } 
     50}; 
    5151 
    5252cColorPalette.prototype.buildPalette = function (){ 
     
    8383                        _td.onclick= function(){ document.getElementById("palettecolor").style.visibility="hidden";ColorPalette.changeFontColor(this.id);}; 
    8484                        _td.onmouseover = function(){ this.className = "sel_color";}; 
    85                         _td.onmouseout = function(){ this.className = "unsel_color";} 
     85                        _td.onmouseout = function(){ this.className = "unsel_color";}; 
    8686                        var p = new Image(); 
    8787                        p.style.width='1px'; 
     
    9191                } 
    9292        } 
    93 } 
     93}; 
    9494 
    9595/* Build the Object */ 
  • trunk/expressoMail1_2/js/jscode/doiMenuData.js

    r2521 r2572  
    7373                        unset_menu_bg(Element("link_tools"));    
    7474                _timeout = setTimeout("_hideMenuTools();",500); 
    75         } 
     75        }; 
    7676 
    7777        var _t = document.createElement("TABLE"); 
     
    126126                _tr.appendChild(_td); 
    127127                return _tr; 
    128         } 
     128        }; 
    129129         
    130130        for(i = 0; i < itens.length; i++) 
  • trunk/expressoMail1_2/js/jscode/drag_area.js

    r2561 r2572  
    133133        { 
    134134                return false; 
    135         } 
     135        }; 
    136136         
    137137        var _this = this; 
     
    151151        };       
    152152         
    153 } 
     153}; 
    154154 
    155155DragArea.prototype.makeDragged = function(element, msg_number, subject, from_list, folder){ 
    156156        element.oncontextmenu = function(e) { 
    157157                return false; 
    158         } 
     158        }; 
    159159        var _this = this; 
    160160        element.onmousedown = function (e){ 
     
    192192                return true; 
    193193        };       
    194 } 
     194}; 
    195195DragArea.prototype.showLayerDrag = function(e){ 
    196196 
     
    214214        this.div_dd.innerHTML = "<img align='center' src='"+this.envelope.src+"'>&nbsp;<span id='content_dd'><font color='red' weight='bold'><b>"+this.subject+"</b></span></font>"; 
    215215        this.div_dd.style.display =''; 
    216 } 
     216}; 
    217217 
    218218DragArea.prototype.onSelectStart = function(value){ 
    219219        if(!value) { 
    220                 document.body.onselectstart = function (e){return false;} 
    221                 document.body.ondragstart = function (e){return false;} 
     220                document.body.onselectstart = function (e){return false;}; 
     221                document.body.ondragstart = function (e){return false;}; 
    222222        } 
    223223        else { 
    224                 document.body.onselectstart = function (e){return true;} 
    225                 document.body.ondragstart = function (e){return true;} 
    226         } 
    227 } 
     224                document.body.onselectstart = function (e){return true;}; 
     225                document.body.ondragstart = function (e){return true;}; 
     226        } 
     227}; 
    228228 
    229229DragArea.prototype.mouseMoveDrag = function(e){          
     
    254254 
    255255        return false; 
    256 } 
     256}; 
  • trunk/expressoMail1_2/js/jscode/load_lang.js

    r2561 r2572  
    44        var _connector = new XConnector; 
    55 
     6        _connector.cache(); 
    67        var request = _connector.go( { 
    78                'access' : URL_SERVER + '/expressoMail1_2/inc/load_lang.php?lang=' + lang, 
  • trunk/expressoMail1_2/js/jscode/messages_controller.js

    r2519 r2572  
    1818                        cExecute ("expressoMail1_2.imap_functions.get_range_msgs2&folder="+folder+"&msg_range_begin="+msg_range_begin+"&msg_range_end="+emails_per_page+"&sort_box_type="+sort_box_type+ "&search_box_type="+ search_box_type +"&sort_box_reverse="+sort_box_reverse+"", call_back); 
    1919                } 
    20         } 
     20        }; 
    2121 
    2222        messages_proxy.prototype.get_msg = function(msg_number,msg_folder,set_flag,call_back) { 
     
    3131                        cExecute("expressoMail1_2.imap_functions.get_info_msg&msg_number="+ msg_number + "&msg_folder=" + url_encode(msg_folder), call_back); 
    3232                } 
    33         } 
     33        }; 
    3434         
    3535        messages_proxy.prototype.delete_msgs = function(folder, msgs_number, border_ID) { 
     
    4646                        draw_tree_local_folders(); 
    4747                } 
    48         } 
     48        }; 
    4949         
    5050        messages_proxy.prototype.link_anexo = function (info_msg,numero_ordem_anexo) { 
     
    5858                        return "javascript:download_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"',"+numero_ordem_anexo+",'"+info_msg.attachments[numero_ordem_anexo].pid+"','"+info_msg.attachments[numero_ordem_anexo].encoding+"','"+info_msg.attachments[numero_ordem_anexo].name+"')"; 
    5959                } 
    60         } 
     60        }; 
    6161 
    6262        messages_proxy.prototype.proxy_source_msg = function (id_msg,folder) { 
     
    6868                        expresso_local_messages.get_source_msg(num_msg); 
    6969                } 
    70         } 
     70        }; 
    7171         
    7272        messages_proxy.prototype.proxy_set_messages_flag = function (flag,msg_number){ 
     
    7777                        set_messages_flag(flag,msg_number); 
    7878                } 
    79         } 
     79        }; 
    8080         
    8181        messages_proxy.prototype.proxy_set_message_flag = function (msg_number,flag){ 
    8282                var msg_number_folder = Element("new_input_folder_"+msg_number+"_r"); 
    83                 var folder = msg_number_folder ?  msg_number_folder.value : get_current_folder() 
     83                var folder = msg_number_folder ?  msg_number_folder.value : get_current_folder(); 
    8484                if(this.is_local_folder(folder)) { 
    8585                        expresso_local_messages.set_message_flag(msg_number,flag); 
     
    8888                        set_message_flag(msg_number,flag); 
    8989                } 
    90         } 
     90        }; 
    9191         
    9292        messages_proxy.prototype.is_local_folder = function(folder) { 
     
    9494                        return false; 
    9595                return true; 
    96         } 
     96        }; 
    9797         
    9898 
     
    122122                } 
    123123                 
    124         } 
     124        }; 
    125125 
    126126        messages_proxy.prototype.proxy_create_folder = function() { 
     
    147147                        else  
    148148                                alert(get_lang("It's not possible create inside: ") + lang_folder(ttree.FOLDER.substr(6))); 
    149         } 
     149        }; 
    150150         
    151151        messages_proxy.prototype.proxy_remove_folder = function() { 
     
    176176                else 
    177177                        ttreeBox.del(); 
    178         } 
     178        }; 
    179179 
    180180        messages_proxy.prototype.proxy_move_messages = function (folder, msgs_number, border_ID, new_folder, new_folder_name) { 
     
    218218                 
    219219                 
    220         } 
     220        }; 
    221221         
    222222        messages_proxy.prototype.proxy_move_search_messages = function(border_id, new_folder, new_folder_name) { 
     
    252252                                write_msg(get_lang("you can't move mails from local to server folders")); 
    253253                        }*/ 
    254         } 
     254        }; 
    255255         
    256256        messages_proxy.prototype.aux_interface_remove_mails = function(msgs_number,new_folder_name,border_ID,previous_msg) { 
     
    279279                refresh();               
    280280                 
    281         } 
     281        }; 
    282282 
    283283        messages_proxy.prototype.msg_img = function(msgs_number,folder_name,call_back) { 
     
    291291        cExecute('expressoMail1_2.imap_functions.get_info_msg&msg_number='+msgs_number+'&msg_folder='+url_encode(folder_name),call_back); 
    292292     } 
    293     } 
     293    }; 
    294294 
    295295    messages_proxy.prototype.export_all_messages = function(folder){ 
     
    304304                        local_messages.prototype.local_messages_to_export(); 
    305305                } 
    306         } 
     306        }; 
    307307 
    308308        messages_proxy.prototype.proxy_export_all_msg=function(){ 
     
    322322                        expresso_local_messages.get_all_local_folder_messages(name_f); 
    323323                } 
    324         } 
     324        }; 
    325325 
    326326        var proxy_mensagens; 
  • trunk/expressoMail1_2/js/jscode/rich_text_editor.js

    r2561 r2572  
    66        this.buildEditor(); 
    77        this.saveFlag = 0; 
    8 } 
     8}; 
    99 
    1010cRichTextEditor.prototype.loadEditor = function(ID) { 
     
    3636        document.getElementById('fontname').selectedIndex = 0; 
    3737        document.getElementById('fontsize').selectedIndex = 0; 
    38 } 
     38}; 
    3939 
    4040cRichTextEditor.prototype.createElementEditor = function(pObj) 
     
    6565                parentDiv.appendChild(checkbox); 
    6666                parentDiv.appendChild(text); 
    67 } 
     67}; 
    6868 
    6969cRichTextEditor.prototype.viewsource = function(source) { 
     
    100100                } 
    101101        } 
    102 } 
     102}; 
    103103 
    104104cRichTextEditor.prototype.buildEditor = function() { 
     
    203203        tbody.appendChild(tr); 
    204204        this.table.appendChild(tbody); 
    205 } 
     205}; 
    206206 
    207207cRichTextEditor.prototype.editorCommand = function(command, option) { 
     
    245245                //mainField.focus(); 
    246246    } catch (e) {/* alert(e);*/ } 
    247 } 
     247}; 
    248248 
    249249cRichTextEditor.prototype.createLink = function(){ 
     
    265265                this.editorCommand("CreateLink", szURL); 
    266266        } 
    267 } 
     267}; 
    268268 
    269269// It include the image file in emails body 
     
    309309        save_msg(id,true); 
    310310        setTimeout("RichTextEditor.insertImgHtml("+id+")",1000); 
    311 } 
     311}; 
    312312 
    313313cRichTextEditor.prototype.insertImgHtml = function (id){ 
     
    318318                        this.editorCommand('Image', './inc/show_embedded_attach.php?msg_folder=INBOX/'+draftsfolder+'&msg_num='+openTab.imapUid[id]+'&msg_part='+(openTab.countFile[id]+1)); 
    319319                        // this.editorCommand('Image', '.inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params')); 
    320 } 
     320}; 
    321321 
    322322cRichTextEditor.prototype.insertTableHtml = function (){ 
     
    334334        insertTable += "</tbody></table>"; 
    335335        this.editorCommand('Table', insertTable); 
    336 } 
     336}; 
    337337 
    338338cRichTextEditor.prototype.createTable = function(){ 
     
    370370                 
    371371                this.showWindow(form); 
    372                 } 
     372                }; 
    373373 
    374374cRichTextEditor.prototype.incrementField = function(id_val){ 
    375375        var field_text = document.getElementById(id_val); 
    376376        field_text.value = parseInt(field_text.value)+1; 
    377 } 
     377}; 
    378378 
    379379cRichTextEditor.prototype.decrementField = function(id_val){ 
     
    381381        if (parseInt(field_text.value) > 0) 
    382382                field_text.value = parseInt(field_text.value)-1; 
    383 } 
     383}; 
    384384 
    385385cRichTextEditor.prototype.createImage = function(){ 
     
    419419                 
    420420                this.showWindow(form); 
    421 } 
     421}; 
    422422cRichTextEditor.prototype.showWindow = function (div){ 
    423423 
     
    453453                        win = this.emwindow[div.id]; 
    454454                win.open();      
    455 } 
     455}; 
    456456 
    457457cRichTextEditor.prototype.Select = function(selectname) 
     
    466466        } 
    467467        mainField.focus(); 
    468 } 
     468}; 
    469469 
    470470cRichTextEditor.prototype.show_pc = function(command) 
     
    476476        else 
    477477                this.hide_pc(); 
    478 } 
     478}; 
    479479 
    480480cRichTextEditor.prototype.hide_pc = function() 
    481481{ 
    482482        document.getElementById("palettecolor").style.visibility="hidden"; 
    483 } 
     483}; 
    484484 
    485485cRichTextEditor.prototype.getOffsetTop = function(elm) { 
    486   var mOffsetTop = elm.offsetTop;1 
     486  var mOffsetTop = elm.offsetTop; 
    487487  var mOffsetParent = elm.offsetParent; 
    488488  while(mOffsetParent){ 
     
    491491  } 
    492492  return mOffsetTop; 
    493 } 
     493}; 
    494494 
    495495cRichTextEditor.prototype.getOffsetLeft = function(elm) { 
     
    501501  } 
    502502  return mOffsetLeft; 
    503 } 
     503}; 
  • trunk/expressoMail1_2/js/jscode/wfolders.js

    r2517 r2572  
    2828                el.appendChild(space); 
    2929 
    30                 var butt = Element('dJSWin_wfolders_bok') 
     30                var butt = Element('dJSWin_wfolders_bok'); 
    3131                if (!butt){ 
    3232                        butt = document.createElement('INPUT'); 
     
    116116                        wfolders_tree.getNodeById('local_Inbox')._select(); 
    117117                _this.showWindow(el, type); 
    118         } 
     118        }; 
    119119 
    120120        cWFolders.prototype.makeWindow = function(border_id, type) 
    121121        { 
    122122                this.makeWindowNew(border_id,type,false); 
    123         } 
     123        }; 
    124124         
    125125        cWFolders.prototype.showWindow = function (div, type) 
     
    157157                } 
    158158                win.open(); 
    159         } 
     159        }; 
    160160         
    161161/* Build the Object */ 
Note: See TracChangeset for help on using the changeset viewer.