add a global ajax error handler to display errror messages for ajax call failure

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1230326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-11 23:34:32 +00:00
parent 1a91ac364d
commit e267d43bb1
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ displayWarningMessage=function(text,idToAppend){
$(textId).focus();
}
$("#user-messages").ajaxError(function(e, jqxhr, settings, exception) {
displayErrorMessage( "ajaxError:"+exception );
});
/**
* clear #main-content and call clearUserMessages
*/