mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
sending the user to the login page when the session expires while filling out a form.
- sending back response code SC_UNAUTHORIZED from ajax servlet when the user has been logged out. updated textarea test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -3719,11 +3719,18 @@ AjaxHelper.createRequest = function(target, serverMethod, methodArgs, load, erro
|
||||
{
|
||||
AjaxHelper._loadHandler(result);
|
||||
});
|
||||
result.error = error || function(type, e)
|
||||
result.error = error || function(type, e, impl)
|
||||
{
|
||||
dojo.debug("error [" + type + "] " + e.message);
|
||||
_show_error(document.createTextNode(e.message));
|
||||
AjaxHelper._loadHandler(this);
|
||||
if (impl.status == 401)
|
||||
{
|
||||
document.getElementById("logout").onclick();
|
||||
}
|
||||
else
|
||||
{
|
||||
_show_error(document.createTextNode(e.message));
|
||||
AjaxHelper._loadHandler(this);
|
||||
}
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user