Ignore:
Timestamp:
08/20/10 18:37:17 (14 years ago)
Author:
niltonneto
Message:

Ticket #1168 - Tratado erro ao expirar sessão dentro do módulo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/contactcenter/js/connector.js

    r2 r3176  
    9494                                                        if (typeof(handler) == 'function') 
    9595                                                        { 
    96                                                                 handler(oxmlhttp.responseText); 
     96                                                                // Session expired, redirect to login page 
     97                                                                if(oxmlhttp.responseText.match(/login\.php\?phpgw_forward/)) 
     98                                                                        location.href="../login.php?cd=10&phpgw_forward=%2Fcontactcenter%2Findex.php"; 
     99                                                                else 
     100                                                                        handler(oxmlhttp.responseText); 
    97101                                                        } 
    98102                                                        delete _this.requests[id]; 
Note: See TracChangeset for help on using the changeset viewer.