mirror of https://github.com/apache/archiva.git
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:
parent
1a91ac364d
commit
e267d43bb1
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue