]> source.dussan.org Git - archiva.git/commitdiff
add remote validation call for cron expression
authorOlivier Lamy <olamy@apache.org>
Wed, 25 Jan 2012 17:14:32 +0000 (17:14 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 25 Jan 2012 17:14:32 +0000 (17:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1235830 13f79535-47bb-0310-9956-ffa450edef68

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

index 0a4a58f09b8a2198cdc2f589264ec077067215e8..ef18d0bf4f96b422d602b5de02afdc93308e543b 100644 (file)
@@ -249,6 +249,13 @@ $(function() {
           digits: true,
           min: 1,
           max: 100
+        },
+        cronExpression: {
+          required: true,
+          remote: {
+            url: "restServices/archivaServices/commonServices/validateCronExpression", // ?cronExpression="+$("#managed-repository-edit-form #cronExpression").val(),
+            type: "get"
+          }
         }
       },
       showErrors: function(validator, errorMap, errorList) {