mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
confirm checkbox is required
This commit is contained in:
parent
2b900b5e06
commit
836a2b50a1
|
@ -38,11 +38,15 @@ class SeedDMS_View_CheckInDocument extends SeedDMS_Theme_Style {
|
|||
$(document).ready(function() {
|
||||
$("#form1").validate({
|
||||
messages: {
|
||||
name: "<?php printMLText("js_no_name");?>",
|
||||
comment: "<?php printMLText("js_no_comment");?>",
|
||||
keywords: "<?php printMLText("js_no_keywords");?>"
|
||||
}
|
||||
});
|
||||
$("#form2").validate({
|
||||
messages: {
|
||||
confirm: "<?php printMLText("js_confirm_cancel_checkout");?>",
|
||||
}
|
||||
});
|
||||
$('#presetexpdate').on('change', function(ev){
|
||||
if($(this).val() == 'date')
|
||||
$('#control_expdate').show();
|
||||
|
@ -691,7 +695,7 @@ $(document).ready(function() {
|
|||
$this->contentHeading(getMLText("cancel_checkout_document"));
|
||||
$this->warningMsg(getMLText('cancel_checkout_warning'));
|
||||
?>
|
||||
<form class="form-horizontal" action="../op/op.CancelCheckOut.php" method="post">
|
||||
<form class="form-horizontal" action="../op/op.CancelCheckOut.php" method="post" id="form2" name="form2">
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getID(); ?>">
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
|
@ -702,7 +706,8 @@ $(document).ready(function() {
|
|||
'element'=>'input',
|
||||
'type'=>'checkbox',
|
||||
'name'=>'confirm',
|
||||
'value'=>1
|
||||
'value'=>1,
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
|
|
Loading…
Reference in New Issue
Block a user