Changeset 4994 for trunk/expressoMail1_2


Ignore:
Timestamp:
08/26/11 13:51:01 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Avisa ao usuário e desativa o arquivamento local do IE8 em modo de compatibilidade.r4951

File:
1 edited

Legend:

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

    r4987 r4994  
    2121                preferences = data; 
    2222                current_folder="INBOX"; 
     23                 
     24                version = (navigator.userAgent.match( /.+ie\s([\d.]+)/i ) || [])[1]; 
     25                if(parseInt(version)==7 && (/trident\/\d/i.test(navigator.userAgent))) 
     26                        preferences.use_local_messages="0"; 
    2327                 
    2428                if( (window.google && google.gears) && !google.gears.factory.getPermission()) 
    2529                    preferences.use_local_messages=0; 
    26  
     30                 
    2731                if ((preferences.use_local_messages==1) && (!window.google || !google.gears)) { 
    2832                    temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 
Note: See TracChangeset for help on using the changeset viewer.