From: Olivier Lamy Date: Fri, 17 Feb 2012 11:36:59 +0000 (+0000) Subject: correctly clear previous user messages X-Git-Tag: archiva-1.4-M3~1263 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4efbe7c1b1de916c6a9555ad25ed60a9bf969014;p=archiva.git correctly clear previous user messages git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1245407 13f79535-47bb-0310-9956-ffa450edef68 --- 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());