mirror of https://github.com/apache/archiva.git
display alert image in case of error when checking remote repo
This commit is contained in:
parent
0a1a105b50
commit
a78b6070bc
|
@ -1230,10 +1230,13 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
|||
success: function(result){
|
||||
$.log("result:"+result);
|
||||
if(result=="true"){
|
||||
mainContent.find("img[id='"+repoId+"']").attr("src", "images/weather-clear.png" )
|
||||
mainContent.find("img[id='"+repoId+"']").attr("src", "images/weather-clear.png" );
|
||||
} else {
|
||||
mainContent.find("img[id='"+repoId+"']").attr("src", "images/weather-severe-alert-16-16.png" )
|
||||
mainContent.find("img[id='"+repoId+"']").attr("src", "images/weather-severe-alert-16-16.png" );
|
||||
}
|
||||
},
|
||||
error: function(result){
|
||||
mainContent.find("img[id='"+repoId+"']").attr("src", "images/weather-severe-alert-16-16.png" );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue