Ignore:
Timestamp:
11/10/11 08:19:35 (12 years ago)
Author:
brunocosta
Message:

Ticket #2289 - Evita o evento onbeforeunload quando um link para um anexo é clicado.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/expressoMail1_2/js/main.js

    r5116 r5162  
    13131313                                        var link_attachment = document.createElement("A"); 
    13141314                                        link_attachment.setAttribute("href", attachments[i].href); 
     1315                                        link_attachment.onclick = function (){window.onbeforeunload = "";}; 
    13151316                                        link_attachment.innerHTML = attachments[i].firstChild.nodeValue + '<br/>'; 
    13161317 
     
    14581459                                        var link_attachment = document.createElement("A"); 
    14591460                                        link_attachment.setAttribute("href", attachments[i].href); 
     1461                                        link_attachment.onclick = function (){window.onbeforeunload = "";}; 
    14601462                                        if(attachments[i].innerHTML == "") 
    14611463                                            continue; 
     
    20242026 
    20252027                        link_attachment.setAttribute("href", "javascript:download_attachments("+href+")"); 
    2026  
     2028                        link_attachment.onclick = function (){window.onbeforeunload = "";}; 
    20272029                        var a_tmp = href.split(','); 
    20282030                        a_tmp[2] = fileName; 
Note: See TracChangeset for help on using the changeset viewer.