diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index 04bdca456..09d691411 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -267,10 +267,11 @@ $(function() { $.ajax(url, { type: "GET", + beforeSend:function(){ + displayInfoMessage($.i18n.prop("managedrepository.scan.started")); + }, success: function(data) { - self.managedRepositories.remove(managedRepository); displaySuccessMessage($.i18n.prop("managedrepository.scanned",managedRepository.name())); - }, error: function(data) { var res = $.parseJSON(data.responseText); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/message.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/message.html index e49808b84..62ca14631 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/message.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/message.html @@ -34,4 +34,10 @@

${message}

+ diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js index 9e6fc7af9..179b07313 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js @@ -73,6 +73,12 @@ displayWarningMessage=function(text,idToAppend){ $(textId).focus(); } +displayInfoMessage=function(text,idToAppend){ + var textId = idToAppend ? $("#"+idToAppend) : $("#user-messages"); + $.tmpl($("#alert-message-info").html(), { "message" : text }).appendTo( textId ); + $(textId).focus(); +} + /** * clear #main-content and call clearUserMessages */