Ignore:
Timestamp:
05/13/11 18:21:58 (13 years ago)
Author:
adriano
Message:

Ticket #1888 - Problemas ao anexar um arquivo na composicao de um email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js

    r4365 r4413  
    31893189        } 
    31903190 
     3191        /**  
     3192        * event to enable autosave_draft on file attachment  
     3193        */  
     3194        function save_onchange_attachment_handler () { 
     3195                away = false;  
     3196                var save_link = Element("save_message_options_"+border_id);  
     3197                save_link.onclick = function onclick(event) {  
     3198                openTab.toPreserve[border_id] = true;   
     3199                        save_msg(border_id);  
     3200                };  
     3201                save_link.className = 'message_options';  
     3202        };  
     3203         
    31913204        var add_files = document.createElement("A"); 
    31923205        add_files.setAttribute("href", "javascript:void(0)"); 
    3193         add_files.onclick = function () { addFile(ID); return false;}; 
     3206        add_files.onclick = function () { 
     3207                var obj = addFile(ID);  
     3208                if (preferences.auto_save_draft == 1 && obj) { 
     3209                        if ( obj.addEventListener )  
     3210                        obj.addEventListener('click', save_onchange_attachment_handler, false);  
     3211                }  
     3212                return false;  
     3213        };  
    31943214        add_files.innerHTML =  get_lang("Attachments: add+"); 
    31953215        add_files.setAttribute("tabIndex","-1"); 
Note: See TracChangeset for help on using the changeset viewer.