From c50be07275d191ab3c8ea1ffe2c3422060da21df Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 29 Jul 2012 19:21:30 +0000 Subject: [PATCH] correctly display/cleanup error message where repository missing git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1366906 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/general-admin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js index 3b8046a1c..057fa5baa 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js @@ -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=" -- 2.39.5