From: Olivier Lamy Date: Mon, 19 May 2014 06:13:26 +0000 (+1000) Subject: display alert image in case of error when checking remote repo X-Git-Tag: archiva-2.1.0~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a78b6070bc5c8e866011b6602b196a7c17f42c7d;p=archiva.git display alert image in case of error when checking remote repo --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js index 6ccf740e5..dc40f5980 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js @@ -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" ); } }); });