]> source.dussan.org Git - archiva.git/commitdiff
more validation rules for managed repository form
authorOlivier Lamy <olamy@apache.org>
Tue, 17 Jan 2012 14:59:28 +0000 (14:59 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 17 Jan 2012 14:59:28 +0000 (14:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1232433 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js

index 5e90e6e5ad93b75215843bc574e6410b39fdac10..b6f6a0121cf932d223aa734fc28c03fed44bdaf6 100644 (file)
@@ -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) {