Ignore:
Timestamp:
03/22/12 12:18:12 (12 years ago)
Author:
cristiano
Message:

Ticket #2497 - title do botao anexar arquivos, verificação de mensagem aberta ao fechar expresso

File:
1 edited

Legend:

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

    r5782 r5785  
    7575var _beforeunload_ = window.onbeforeunload; 
    7676 
    77 window.onbeforeunload = function() 
    78 { 
    79         return unloadMess(); 
    80 } 
     77window.onbeforeunload = unloadMess; 
    8178 
    8279function unloadMess(){ 
     
    8784        } 
    8885        else { 
    89                 var mess = get_lang("Your message has not been sent and will be discarted."); 
    90                 for (var i = 0; i < BordersArray.length; i++) { 
    91                         var body = Element('body_' + BordersArray[i].sequence); 
    92                         if (body && body.contentWindow && body.contentWindow.document.designMode.toLowerCase() == 'on') { 
    93                                 return mess; 
    94                         } 
    95                 } 
     86            for (var i = 0; i < BordersArray.length; i++)  
     87                    if(BordersArray[i].sequence > 0 && (!isNaN(BordersArray[i].sequence)&&parseInt(BordersArray[i].sequence) == BordersArray[i].sequence) ) 
     88                            return get_lang('There are still editing posts, really want to leave the page')+'?'; 
    9689        } 
    9790} 
Note: See TracChangeset for help on using the changeset viewer.