mirror of https://github.com/apache/archiva.git
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:
parent
82e83d4fa1
commit
b2220764e9
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue