From a78b6070bc5c8e866011b6602b196a7c17f42c7d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 19 May 2014 16:13:26 +1000 Subject: [PATCH] display alert image in case of error when checking remote repo --- .../js/archiva/admin/repository/maven2/repositories.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" ); } }); }); -- 2.39.5