From: Olivier Lamy Date: Sun, 29 Jul 2012 19:21:30 +0000 (+0000) Subject: correctly display/cleanup error message where repository missing X-Git-Tag: archiva-1.4-M3~498 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c50be07275d191ab3c8ea1ffe2c3422060da21df;p=archiva.git 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 --- 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="