From 32b26356e9446dfc5c4d0fb857466cd808eec353 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 17 Jan 2012 14:59:28 +0000 Subject: [PATCH] more validation rules for managed repository form git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1232433 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/repositories.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index 5e90e6e5a..b6f6a0121 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -133,10 +133,13 @@ $(function() { $("#main-content #managed-repository-edit-form").validate({ rules: { daysOlder : { - digits: true + digits: true, + min: 1 }, retentionCount : { - digits: true + digits: true, + min: 1, + max: 100 } }, showErrors: function(validator, errorMap, errorList) {