BUG 10733 Cuando se navega en la opcióome-->documents se pierde la sesion SOLVEDD

- Wrong validation in ajax request when clicking in another link
- Fix the validation to discrimine a session error and cancelation error
This commit is contained in:
Julio Cesar Laura
2013-02-07 15:30:10 -04:00
parent 1a2dfc08f6
commit d75ff78293

View File

@@ -833,10 +833,13 @@ datastore.on("beforeload",
options.params.sendWhat = datastore.sendWhat;
});
datastore.on("loadexception",
function(misc) {
function(proxy, options, response, e) {
try {
msgbox = Ext.Msg.alert('error', _('ID_LOGIN_AGAIN'), function(){try{parent.parent.window.location = '../login/login';} catch(e){}} );
msgbox.setIcon(Ext.MessageBox.ERROR);
responseData = Ext.decode(response.responseText);
if (typeof(responseData.login) != 'undefined') {
msgbox = Ext.Msg.alert('error', _('ID_LOGIN_AGAIN'), function(){try{parent.parent.window.location = '../login/login';} catch(e){}} );
msgbox.setIcon(Ext.MessageBox.ERROR);
}
} catch(e) {
}
});