]> source.dussan.org Git - archiva.git/commitdiff
correctly display/cleanup error message where repository missing
authorOlivier Lamy <olamy@apache.org>
Sun, 29 Jul 2012 19:21:30 +0000 (19:21 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 29 Jul 2012 19:21:30 +0000 (19:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1366906 13f79535-47bb-0310-9956-ffa450edef68

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

index 3b8046a1c190a383785acde5c3a3e907000eb8db..057fa5baa4856f892e5fd43f029c6c5bbd298498 100644 (file)
@@ -886,6 +886,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
   }
 
   reportStatisticsFormValidator=function(){
+    $.log("reportStatisticsFormValidator");
     var validate = $("#main-content #report-statistics-form-id").validate({
       rules: {
         rowCountStatistics: {
@@ -919,6 +920,8 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
     mainContent.find("#rowCount-info-button" ).popover();
 
     this.showStatistics=function() {
+      $.log("showStatistics");
+      clearUserMessages( "repositoriesErrorMessage" );
       if (!mainContent.find("#report-statistics-form-id").valid()) {
         return;
       }
@@ -926,7 +929,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
         displayErrorMessage( $.i18n.prop('report.statistics.repositories.required'), "repositoriesErrorMessage" );
         return;
       }
-      clearUserMessages( "repositoriesErrorMessage" );
+
       var resultTabContent = mainContent.find("#report-result");
 
       url = "restServices/archivaServices/reportServices/getStatisticsReport/?rowCount="