]> source.dussan.org Git - archiva.git/commitdiff
correctly clear previous user messages
authorOlivier Lamy <olamy@apache.org>
Fri, 17 Feb 2012 11:36:59 +0000 (11:36 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 17 Feb 2012 11:36:59 +0000 (11:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1245407 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index 92ff8afce79a6eaf10240f6648d745634dcbe90c..eee15776dff39315f896a0754a59c4b66939bef7 100644 (file)
@@ -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);
index d3c03ddf0e3a50d1fac2deba1e5c0bbc6017b636..6f640f2bddcd6468a0c94530a64763d0b12ee4e1 100644 (file)
@@ -36,6 +36,7 @@ $(function() {
   }
 
   displayBrowse=function(){
+    clearUserMessages();
     var mainContent = $("#main-content");
     mainContent.html($("#browse-tmpl" ).tmpl());
     mainContent.find("#browse_result").html(mediumSpinnerImg());