add a default 500 http error handling with jquery

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1383092 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-10 19:59:12 +00:00
parent 82e83d4fa1
commit b2220764e9
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,7 @@ directory=Directory
save.all=Save all save.all=Save all
authz.karma.needed=You need to be authenticated for this action or have more privileges. authz.karma.needed=You need to be authenticated for this action or have more privileges.
error.500=An error has happened you must contact the administrator to check the logs.
administration.repositories=Repositories Administration administration.repositories=Repositories Administration

View File

@ -35,6 +35,12 @@ function() {
removeMediumSpinnerImg("#main-content"); removeMediumSpinnerImg("#main-content");
clearUserMessages(); clearUserMessages();
displayErrorMessage($.i18n.prop('authz.karma.needed')); displayErrorMessage($.i18n.prop('authz.karma.needed'));
},
500: function(){
removeSmallSpinnerImg();
removeMediumSpinnerImg("#main-content");
clearUserMessages();
displayErrorMessage($.i18n.prop('error.500'));
} }
} }
}); });