]> source.dussan.org Git - archiva.git/commitdiff
display alert image in case of error when checking remote repo
authorOlivier Lamy <olamy@apache.org>
Mon, 19 May 2014 06:13:26 +0000 (16:13 +1000)
committerOlivier Lamy <olamy@apache.org>
Mon, 19 May 2014 06:13:26 +0000 (16:13 +1000)
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js

index 6ccf740e517f315422413144b145185b219c9cb9..dc40f5980d398f682d580cd0fc25db8ac5d387b3 100644 (file)
@@ -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" );
                     }
                   });
                 });