summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-02-17 11:36:59 +0000
committerOlivier Lamy <olamy@apache.org>2012-02-17 11:36:59 +0000
commit4efbe7c1b1de916c6a9555ad25ed60a9bf969014 (patch)
tree08183624012086c0ce9e3016beb725a10c1dee00 /archiva-modules
parent85838051e1823b16d970c784def4478598cb6075 (diff)
downloadarchiva-4efbe7c1b1de916c6a9555ad25ed60a9bf969014.tar.gz
archiva-4efbe7c1b1de916c6a9555ad25ed60a9bf969014.zip
correctly clear previous user messages
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1245407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js2
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js1
2 files changed, 2 insertions, 1 deletions
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 92ff8afce..eee15776d 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
@@ -758,8 +758,8 @@ $(function() {
{
type: "GET",
success: function(data) {
+ clearUserMessages();
displaySuccessMessage($.i18n.prop("remoterepository.download.remote.scheduled",remoteRepository.name()));
-
},
error: function(data) {
var res = $.parseJSON(data.responseText);
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
index d3c03ddf0..6f640f2bd 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
@@ -36,6 +36,7 @@ $(function() {
}
displayBrowse=function(){
+ clearUserMessages();
var mainContent = $("#main-content");
mainContent.html($("#browse-tmpl" ).tmpl());
mainContent.find("#browse_result").html(mediumSpinnerImg());