Merge pull request #1299 from julceslauhub/master

BUG 10733 Cuando se navega en la opcióome-->documents se pierde la sesion SOLVED
This commit is contained in:
julceslauhub
2013-02-07 11:29:02 -08:00

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) {
}
});