diff options
author | Olivier Lamy <olamy@apache.org> | 2012-07-29 19:21:30 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-07-29 19:21:30 +0000 |
commit | c50be07275d191ab3c8ea1ffe2c3422060da21df (patch) | |
tree | 8fb647a64eb3e548cc8ac493ceae2ad34b2cacda | |
parent | 44a0d63f4fddb93c8ff154840ab00fd969a8e672 (diff) | |
download | archiva-c50be07275d191ab3c8ea1ffe2c3422060da21df.tar.gz archiva-c50be07275d191ab3c8ea1ffe2c3422060da21df.zip |
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
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js | 5 |
1 files changed, 4 insertions, 1 deletions
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=" |