Changeset 4951 for branches/2.3


Ignore:
Timestamp:
08/18/11 15:59:27 (8 years ago)
Author:
brunocosta
Message:

Ticket #2202 - Avisa ao usuário e desativa o arquivamento local no IE8 em modo de compatibilidade.

Location:
branches/2.3
Files:
4 edited

Legend:

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

    r4938 r4951  
    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?")); 
  • branches/2.3/phpgwapi/templates/default/login.tpl

    r3999 r4951  
    1212<script language="Javascript"> 
    1313<!-- 
     14 
     15         
     16        function isCompat(){ 
     17             version = (navigator.userAgent.match( /.+ie\s([\d.]+)/i ) || [])[1]; 
     18             if(parseInt(version)==7 && (/trident\/\d/i.test(navigator.userAgent))) 
     19                alert("{compatIE8}"); 
     20        } 
    1421 
    1522        function setLogin(){ 
     
    132139</script> 
    133140</HEAD> 
    134 <body scroll="no"  style="overflow:hidden" onLoad="javascript:getLogin()" bgcolor="#ffffff"> 
     141<body scroll="no"  style="overflow:hidden" onLoad="javascript:getLogin();isCompat();" bgcolor="#ffffff"> 
    135142<form id="loginForm" name="flogin" method="post" action="{login_url}" {autocomplete}> 
    136143<div id="conteudo"> 
  • branches/2.3/phpgwapi/templates/default/login_default.php

    r4867 r4951  
    386386        $tmpl->set_var('website_title', $GLOBALS['phpgw_info']['server']['site_title']); 
    387387        $tmpl->set_var('template_set', $template); 
     388        $tmpl->set_var('compatIE8',lang("The compatibility mode for internet explorer 8 is active. Turn it of if you want to use the local mail functionality.")); 
    388389 
    389390        // loads the template's login.css 
Note: See TracChangeset for help on using the changeset viewer.