comment is no longer required

This commit is contained in:
Uwe Steinmann 2024-05-02 14:23:42 +02:00
parent 60696ac079
commit b77609d375

View File

@ -37,14 +37,6 @@ class SeedDMS_View_OverrideContentStatus extends SeedDMS_Theme_Style {
?>
$(document).ready(function() {
$("#form1").validate({
rules: {
comment: {
required: true
},
overrideStatus: {
required: true
},
},
messages: {
comment: "<?php printMLText("js_no_comment");?>",
overrideStatus: "<?php printMLText("js_no_override_status");?>",
@ -88,7 +80,7 @@ $(document).ready(function() {
array(
'element'=>'textarea',
'name'=>'comment',
'required'=>true,
'required'=>false,
'rows'=>4,
)
);
@ -104,6 +96,7 @@ $(document).ready(function() {
'element'=>'select',
'name'=>'overrideStatus',
'options'=>$options,
'required'=>true,
)
);
$this->contentContainerEnd();