}
activateManagedRepositoryFormValidation=function(){
- $("#main-content #managed-repository-edit-form").validate({
+ var validator = $("#main-content #managed-repository-edit-form").validate({
rules: {
daysOlder : {
digits: true,
customShowError(validator,errorMap,errorMap);
}
});
+ validator.settings.messages["cronExpression"]=$.i18n.prop("cronExpression.notvalid");
}
ManagedRepositoriesViewModel=function(){
activateRemoteRepositoryFormValidation=function(){
// FIXME find a way to activate cronExpression validation only if downloadRemote is activated !
- $("#main-content #remote-repository-edit-form").validate({
+ var validator = $("#main-content #remote-repository-edit-form").validate({
/*rules: {
daysOlder : {
digits: true,
customShowError(validator,errorMap,errorMap);
}
});
+ validator.settings.messages["cronExpression"]=$.i18n.prop("cronExpression.notvalid");
}
activateRemoteRepositoriesGridTab=function(){