Ignore:
Timestamp:
06/24/08 16:45:40 (16 years ago)
Author:
rafaelraymundo
Message:

Alterações realizadas para unificação do ExpressoMail?


r39 | 50673548368 | 2008-06-24 18:17:33 -0300 (Ter, 24 Jun 2008) | 9 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Os arquivos abaixo sofreram modificacoes para tratar a exibicao do departamento na opcao "Pesquisar" do email.

  • alteracao na funcao catalogsearch() em expressoMail1_2/inc/class.ldap_functions.inc.php
  • alteracao na funcao searchCatalogList em expressoMail1_2/js/QuickCatalogSearch.js

r38 | 98954890059 | 2008-06-24 18:07:11 -0300 (Ter, 24 Jun 2008) | 1 line
Caminhos mudados:

M /trunk/expressoMail1_2/js/rich_text_editor.js

Correcao de traducoes e remocao da variavel defaultDraftsFodler


r35 | 98954890059 | 2008-06-19 21:11:11 -0300 (Qui, 19 Jun 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Melhoria inseridas pelo Emerson:

Pesquisa por catalogos externos na Lupa(f9).


r34 | 00105772038 | 2008-06-19 19:51:58 -0300 (Qui, 19 Jun 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/templates/default/preferences.tpl

Em preferências do Email foi removida a opção duplicada:

  • Salvar rascunhos automaticamente

r33 | 98954890059 | 2008-06-19 19:23:04 -0300 (Qui, 19 Jun 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/draw_api.js

correcao de bug que nao mostrava a cota do usuario ao abrir o expressoMail.


r32 | 98954890059 | 2008-06-19 18:17:39 -0300 (Qui, 19 Jun 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ScriptS.inc.php
M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/index.php
M /trunk/expressoMail1_2/js/DropDownContacts.js
M /trunk/expressoMail1_2/js/InfoContact.js
M /trunk/expressoMail1_2/js/TreeS.js
M /trunk/expressoMail1_2/js/TreeShow.js
M /trunk/expressoMail1_2/js/abas.js
M /trunk/expressoMail1_2/js/common_functions.js
M /trunk/expressoMail1_2/js/doiMenuData.js
M /trunk/expressoMail1_2/js/drag_area.js
M /trunk/expressoMail1_2/js/draw_api.js
M /trunk/expressoMail1_2/js/globals.js
M /trunk/expressoMail1_2/js/main.js
M /trunk/expressoMail1_2/js/rich_text_editor.js
M /trunk/expressoMail1_2/js/search.js
M /trunk/expressoMail1_2/js/shortcut.js
M /trunk/expressoMail1_2/preferences.php
M /trunk/expressoMail1_2/setup/phpgw_pt-br.lang
M /trunk/expressoMail1_2/setup/setup.inc.php
M /trunk/expressoMail1_2/templates/default/index.tpl
M /trunk/expressoMail1_2/templates/default/preferences.tpl

Corcacoes da celepar do bug das imagens e tabelas


r30 | 00105772038 | 2008-06-05 18:12:17 -0300 (Qui, 05 Jun 2008) | 5 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/common_functions.js
M /trunk/expressoMail1_2/js/globals.js

  • Foram inseridas funcionalidades para:

globals.js: Extenções de imagens permitidas "allowFileExtensions"

common_functions.js: Alterada a função validateFileExtension para rejeitar arquivos que não sejam imagens no corpo do email


r28 | 98954890059 | 2008-05-28 17:37:52 -0300 (Qua, 28 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/js/main.js

Alterada a funcao empty_trash() para mudar de Lixeira para imapDefaultTrashFolder.


r27 | 00105772038 | 2008-05-28 17:11:41 -0300 (Qua, 28 Mai 2008) | 1 line
Caminhos mudados:

M /trunk/expressoMail1_2/setup/phpgw_pt-br.lang

Incluida tradução para mensagem de 'alert' ao tentar excluir emails de uma pasta compartilhada


r26 | 98954890059 | 2008-05-28 13:08:26 -0300 (Qua, 28 Mai 2008) | 1 line
Caminhos mudados:

M /trunk/expressoMail1_2/js/main.js

Inserido get_lang na ACL das pastas compartilhadas. Função move_msgs()


r24 | 98954890059 | 2008-05-27 17:53:30 -0300 (Ter, 27 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/preferences.js

Aumentado o tamanho da janela javascript das preferencias do expressoMail.


r23 | 03436989789 | 2008-05-27 17:43:54 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Substituição de links no email.


r22 | 98954890059 | 2008-05-27 17:07:32 -0300 (Ter, 27 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/draw_api.js

Corrigido um bug na visualizacao das pastas compartilhadas.


r19 | 03436989789 | 2008-05-27 15:37:01 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

Pesquisa em catalogos externos


r17 | 03436989789 | 2008-05-27 13:18:56 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Busca de catálogos externos no email.


r15 | 98954890059 | 2008-05-27 12:19:50 -0300 (Ter, 27 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/js/QuickCatalogSearch.js

Procura em catálogos externos


r6 | 98954890059 | 2008-05-21 16:14:33 -0300 (Qua, 21 Mai 2008) | 2 lines
Caminhos mudados:

M /trunk/expressoMail1_2/js/draw_api.js

Correção para atualizar a visualização das cotas
de pastas compartilhadas ao mudar de pasta.


r5 | 98954890059 | 2008-05-21 16:02:37 -0300 (Qua, 21 Mai 2008) | 3 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/js/draw_api.js

Alterações iniciais do serpro:

-Mostrar quotas das pastas compartilhadas


r4 | 03436989789 | 2008-05-21 13:25:29 -0300 (Qua, 21 Mai 2008) | 10 lines
Caminhos mudados:

M /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
M /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
M /trunk/expressoMail1_2/index.php
M /trunk/expressoMail1_2/js/common_functions.js
M /trunk/expressoMail1_2/js/filter.js
M /trunk/expressoMail1_2/js/main.js
M /trunk/expressoMail1_2/js/preferences.js
M /trunk/expressoMail1_2/js/rich_text_editor.js
M /trunk/expressoMail1_2/preferences.php
M /trunk/expressoMail1_2/setup/phpgw_pt-br.lang
M /trunk/expressoMail1_2/templates/default/preferences.tpl

Alterações iniciais do sepro:

  • Assinatura automática no corpo das mensagens
  • Fixar assinatura no corpo das mensagens
  • Questão dos Catálogos Externos (Ao clicar em um email o módulo abre nova mensagem)
  • Inserção de imagens em Firefox3
  • Quota nas pastas compartilhadas
  • Traduções nas pastas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/common_functions.js

    r320 r325  
    3535        var bar = Element("toolbar"); 
    3636        var offset = 0; 
    37         if(bar.style.visibility != 'hidden')  
    38                 offset = (bar.offsetHeight ? bar.offsetHeight :  bar.clientHeight);      
     37        if(bar.style.visibility != 'hidden') 
     38                offset = (bar.offsetHeight ? bar.offsetHeight :  bar.clientHeight); 
    3939 
    4040        var screenHeight = document.body.clientHeight ? document.body.clientHeight : document.body.offsetHeight; 
     
    5757// END: FUNCTION RESIZE WINDOW 
    5858 
    59 // onUnload edit message 
    60  
    6159var _beforeunload_ = window.onbeforeunload; 
    6260 
     
    7977function get_lang(_key,_arg1,_arg2,_arg3,_arg4) { 
    8078 
    81         if(!array_lang[0]){              
     79        if(!array_lang[0]){ 
    8280                return _key+"*"; 
    8381        } 
    84         _value = "";     
     82        _value = ""; 
    8583        for(i = 0; i < array_lang[0].length;i++){ 
    8684                if(array_lang[0][i] == _key.toLowerCase()) { 
    87                         _value = array_lang[1][i];                                       
     85                        _value = array_lang[1][i]; 
    8886                        break; 
    8987                } 
    90         }        
    91          
     88        } 
     89 
    9290        if(!_value) 
    9391                return _key+"*"; 
    94                          
     92 
    9593        if(_arg1 || _arg2 ||_arg3 || _arg4) { 
    9694                for(j = 1; j <= 4; j++){ 
    9795                        if(eval("_arg"+j)) { 
    98                                 var regExp = new RegExp("%"+j+"");               
     96                                var regExp = new RegExp("%"+j+""); 
    9997                                _value = _value.replace(regExp,eval("_arg"+j)); 
    10098                        } 
    10199                } 
    102100        } 
    103          
     101 
    104102        return _value; 
    105103} 
     
    112110 
    113111// Change the class of message. 
    114 // In refresh, the flags UnRead and UnSeen don't exist anymore.  
     112// In refresh, the flags UnRead and UnSeen don't exist anymore. 
    115113function set_msg_as_read(msg_number, selected){ 
    116114        tr_message = Element(msg_number); 
     
    170168        //Get element tBody. 
    171169        main = document.getElementById("tbody_box"); 
    172                  
     170 
    173171        // Get all TR (messages) in tBody. 
    174172        main_list = main.childNodes; 
    175          
     173 
    176174        return main_list.length; 
    177175} 
     
    180178        div_attachment = document.getElementById("id_div_attachment"); 
    181179        var params = ''; 
    182          
     180 
    183181        if (div_attachment == null){ 
    184182                var div_attachment = document.createElement("DIV"); 
     
    195193 
    196194function download_all_attachments(msg_folder, msg_number){ 
    197         var handler_source = function(data){             
     195        var handler_source = function(data){ 
    198196                download_attachments(null, null, data, null,null,'anexos.zip'); 
    199197        } 
     
    205203        if (! divFiles) 
    206204                return false; 
    207          
     205 
    208206        if (divFiles.lastChild) 
    209207                var countDivFiles = parseInt(divFiles.lastChild.id.split('_')[2]) + 1; 
     
    211209        if (! countDivFiles) 
    212210                var countDivFiles = 1; 
    213          
     211 
    214212        divFile = document.createElement('DIV'); 
    215          
     213 
    216214        var inputFile = document.createElement("INPUT"); 
    217          
     215 
    218216        var tmp_id_border = document.createAttribute('id_border'); 
    219217        tmp_id_border.value = id_border; 
    220          
     218 
    221219        inputFile.setAttributeNode(tmp_id_border); 
    222220        inputFile.id = "inputFile_"+id_border+"_"+countDivFiles; 
     
    226224        inputFile.maxLength = 255; 
    227225        inputFile.name='file_'+countDivFiles; 
    228          
     226 
    229227        divFile.appendChild(inputFile); 
    230          
     228 
    231229        var linkFile = document.createElement("A"); 
    232230        linkFile.id = "linkFile_"+id_border+"_"+countDivFiles; 
    233231        linkFile.href='javascript:void(0)'; 
    234232        linkFile.onclick=function () {removeFile(this.id.replace("link","div")); return false;}; 
    235         linkFile.innerHTML=get_lang("Remove");   
     233        linkFile.innerHTML=get_lang("Remove"); 
    236234        //divFile.innerHTML += "&nbsp;&nbsp;"; 
    237235        divFile.appendChild(linkFile); 
    238         divFile.id = "divFile_"+id_border+"_"+countDivFiles;     
     236        divFile.id = "divFile_"+id_border+"_"+countDivFiles; 
    239237        divFiles.appendChild(divFile); 
    240238} 
     
    289287// Funcao usada para escrever mensagem 
    290288// notimeout = True : mensagem nao apaga 
    291 function write_msg(msg, notimeout){      
    292          
     289function write_msg(msg, notimeout){ 
     290 
    293291        if (setTimeout_write_msg) 
    294292                clearTimeout(setTimeout_write_msg); 
    295          
     293 
    296294        var msg_div = Element('em_div_write_msg'); 
    297295        var old_divStatusBar = Element("divStatusBar"); 
     
    304302                msg_div.style.display = 'none'; 
    305303                old_divStatusBar.parentNode.insertBefore(msg_div,old_divStatusBar); 
    306         }        
     304        } 
    307305        msg_div.innerHTML = '<table bgcolor="#f7f8fa" width=100% cellspacing="0" cellpadding="0" border="0"><tbody><tr><th width="40%"></th><th noWrap class="action_info_th">'+msg+'</th><th width="40%"></th></tr></tbody></table>'; 
    308306        old_divStatusBar.style.display = 'none'; 
    309         msg_div.style.display = '';      
     307        msg_div.style.display = ''; 
    310308        // Nao ponha var na frente!! jakjr 
    311309        handle_write_msg = function(){ 
     
    314312                                clean_msg(); 
    315313                        else 
    316                                 write_msg(old_msg, true);                        
     314                                write_msg(old_msg, true); 
    317315                } 
    318316                catch(e){} 
     
    330328        if(msg_div) 
    331329                msg_div.style.display = 'none'; 
    332         old_divStatusBar.style.display = '';     
     330        old_divStatusBar.style.display = ''; 
    333331} 
    334332 
     
    373371        var quickSearchKeyBegin; 
    374372        var quickSearchKeyEnd; 
    375          
     373 
    376374        var handler_emQuickSearch = function(data) 
    377375        { 
     
    380378                        window_DropDownContacts.style.visibility = 'hidden'; 
    381379                } 
    382                  
     380 
    383381                if ((!data.status) && (data.error == "many results")){ 
    384382                        alert(get_lang('More than %1 results. Please, try to refine your search.',200)); 
    385383                        return false; 
    386384                } 
    387                          
     385 
    388386                if (data.length > 0){ 
    389387                        if ((field != 'null') && (ID != 'null')) 
     
    402400                return true; 
    403401        } 
    404          
     402 
    405403        if ((field != 'null') && (ID != 'null')) 
    406404        { 
    407                 Element(field +'_'+ ID).focus(); //necessário para o IE. 
     405                Element(field +'_'+ ID).focus(); //necessï¿œrio para o IE. 
    408406                var i = getPosition(Element(field +'_'+ ID)); //inputBox.selectionStart; 
    409407                var j = --i; 
     
    422420        else 
    423421                var search_for = emailList; 
    424          
     422 
    425423        if (search_for.length < 4){ 
    426424                alert(get_lang('Your search argument must be longer than 4 characters.')); 
    427425                return false; 
    428426        } 
    429          
     427 
    430428        cExecute ("$this.ldap_functions.quicksearch&search_for="+search_for+"&field="+field+"&ID="+ID, handler_emQuickSearch); 
    431429} 
     
    475473 
    476474function url_encode(str){ 
    477     var hex_chars = "0123456789ABCDEF";  
    478     var noEncode = /^([a-zA-Z0-9\_\-\.])$/;  
    479     var n, strCode, hex1, hex2, strEncode = "";  
    480  
    481     for(n = 0; n < str.length; n++) {  
    482         if (noEncode.test(str.charAt(n))) {  
    483             strEncode += str.charAt(n);  
    484         } else {  
    485             strCode = str.charCodeAt(n);  
    486             hex1 = hex_chars.charAt(Math.floor(strCode / 16));  
    487             hex2 = hex_chars.charAt(strCode % 16);  
    488             strEncode += "%" + (hex1 + hex2);  
    489         }  
    490     }  
    491     return strEncode;  
    492 }   
    493  
    494 function url_decode(str) {  
    495  
    496         var n, strCode, strDecode = "";  
    497         for (n = 0; n < str.length; n++) {  
    498             if (str.charAt(n) == "%") {  
    499                 strCode = str.charAt(n + 1) + str.charAt(n + 2);  
    500                 strDecode += String.fromCharCode(parseInt(strCode, 16));  
    501                 n += 2;  
    502             } else {  
    503                 strDecode += str.charAt(n);  
    504             }  
    505         }  
    506         return strDecode;  
    507 }   
     475    var hex_chars = "0123456789ABCDEF"; 
     476    var noEncode = /^([a-zA-Z0-9\_\-\.])$/; 
     477    var n, strCode, hex1, hex2, strEncode = ""; 
     478 
     479    for(n = 0; n < str.length; n++) { 
     480        if (noEncode.test(str.charAt(n))) { 
     481            strEncode += str.charAt(n); 
     482        } else { 
     483            strCode = str.charCodeAt(n); 
     484            hex1 = hex_chars.charAt(Math.floor(strCode / 16)); 
     485            hex2 = hex_chars.charAt(strCode % 16); 
     486            strEncode += "%" + (hex1 + hex2); 
     487        } 
     488    } 
     489    return strEncode; 
     490} 
     491 
     492function url_decode(str) { 
     493 
     494        var n, strCode, strDecode = ""; 
     495        for (n = 0; n < str.length; n++) { 
     496            if (str.charAt(n) == "%") { 
     497                strCode = str.charAt(n + 1) + str.charAt(n + 2); 
     498                strDecode += String.fromCharCode(parseInt(strCode, 16)); 
     499                n += 2; 
     500            } else { 
     501                strDecode += str.charAt(n); 
     502            } 
     503        } 
     504        return strDecode; 
     505} 
    508506 
    509507 
     
    530528                        var Lp=obj.createTextRange(); 
    531529                } 
    532                  
     530 
    533531                Lp.setEndPoint("EndToStart",M); 
    534532                var rb=Lp.text.length; 
    535                  
     533 
    536534                if(rb > obj.value.length) 
    537535                { 
     
    543541 
    544542function trim(inputString) { 
    545    if (typeof inputString != "string")  
     543   if (typeof inputString != "string") 
    546544        return inputString; 
    547        
     545 
    548546   var retValue = inputString; 
    549547   var ch = retValue.substring(0, 1); 
    550    while (ch == " ") {  
     548   while (ch == " ") { 
    551549          retValue = retValue.substring(1, retValue.length); 
    552550          ch = retValue.substring(0, 1); 
    553551   } 
    554552   ch = retValue.substring(retValue.length-1, retValue.length); 
    555    while (ch == " ") {  
     553   while (ch == " ") { 
    556554          retValue = retValue.substring(0, retValue.length-1); 
    557555          ch = retValue.substring(retValue.length-1, retValue.length); 
    558556   } 
    559    while (retValue.indexOf("  ") != -1) {  
    560           retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length);  
     557   while (retValue.indexOf("  ") != -1) { 
     558          retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
    561559   } 
    562    return retValue;  
     560   return retValue; 
    563561} 
    564562 
    565563function increment_folder_unseen(){ 
    566564        var folder_id = get_current_folder(); 
    567          
     565 
    568566        var folder_unseen = Element('dftree_'+folder_id+'_unseen'); 
    569567        if (folder_unseen) 
     
    581579function decrement_folder_unseen(){ 
    582580        var folder_id = get_current_folder(); 
    583          
     581 
    584582        var folder_unseen = Element('dftree_'+folder_id+'_unseen'); 
    585583        if(!folder_unseen) 
     
    605603        var strTemp = ""; 
    606604        var iTemp = 0; 
    607          
     605 
    608606        if(v_length < 1) 
    609607                return ""; 
    610608 
    611609        var v_length = value ? value.length : 0; 
    612          
     610 
    613611        while(iTemp < v_length){ 
    614612                if(value && value.charAt(iTemp) != w_space){ 
     
    617615                } 
    618616                iTemp++; 
    619         }        
     617        } 
    620618        return strTemp; 
    621619} 
     
    673671        var main_list = main.childNodes; 
    674672        var len_main_list = main_list.length; 
    675          
     673 
    676674        if (select) 
    677675        { 
Note: See TracChangeset for help on using the changeset viewer.