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/common_functions.js

    r5103 r5162  
    222222        } 
    223223        div_attachment.innerHTML="<iframe style='display:none;width:0;height:0' name='attachment' src='"+url+"'></iframe>"; 
     224        window.onbeforeunload = function(){return unloadMess();} 
    224225} 
    225226 
     
    239240 
    240241        div_attachment.innerHTML="<iframe style='display:none;width:0;height:0' name='attachment' src='inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params+"'></iframe>"; 
     242        window.onbeforeunload = function(){return unloadMess();} 
    241243} 
    242244 
     
    315317        var link_attachment = document.createElement("A"); 
    316318        link_attachment.setAttribute("href", link); 
    317  
     319        link_attachment.onclick = function (){window.onbeforeunload = "";}; 
    318320        link_attachment.innerHTML = file_name; 
    319321        divFile.appendChild(link_attachment); 
Note: See TracChangeset for help on using the changeset viewer.