]> source.dussan.org Git - archiva.git/commitdiff
clear user-messages on logout
authorOlivier Lamy <olamy@apache.org>
Thu, 22 Nov 2012 20:27:41 +0000 (20:27 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 22 Nov 2012 20:27:41 +0000 (20:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412657 13f79535-47bb-0310-9956-ffa450edef68

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

index 0c53e6fda6b7189f28e3a6d3c766badf872ab062..b201776ff4a548007bec2e13424ec9c768fcf77b 100644 (file)
@@ -55,7 +55,8 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
     // cleanup karmas
     window.redbackModel.operatioNames=[];
     hideElementWithKarma();
-    $("#main-content").html("");
+    $("#main-content").empty();
+    $("#user-messages" ).empty();
     $.ajax({
       url: 'restServices/redbackServices/loginService/logout',
       complete: function(){