mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +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() {
|
$(document).ready(function() {
|
||||||
$("#form1").validate({
|
$("#form1").validate({
|
||||||
messages: {
|
messages: {
|
||||||
name: "<?php printMLText("js_no_name");?>",
|
|
||||||
comment: "<?php printMLText("js_no_comment");?>",
|
comment: "<?php printMLText("js_no_comment");?>",
|
||||||
keywords: "<?php printMLText("js_no_keywords");?>"
|
keywords: "<?php printMLText("js_no_keywords");?>"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$("#form2").validate({
|
||||||
|
messages: {
|
||||||
|
confirm: "<?php printMLText("js_confirm_cancel_checkout");?>",
|
||||||
|
}
|
||||||
|
});
|
||||||
$('#presetexpdate').on('change', function(ev){
|
$('#presetexpdate').on('change', function(ev){
|
||||||
if($(this).val() == 'date')
|
if($(this).val() == 'date')
|
||||||
$('#control_expdate').show();
|
$('#control_expdate').show();
|
||||||
|
@ -691,7 +695,7 @@ $(document).ready(function() {
|
||||||
$this->contentHeading(getMLText("cancel_checkout_document"));
|
$this->contentHeading(getMLText("cancel_checkout_document"));
|
||||||
$this->warningMsg(getMLText('cancel_checkout_warning'));
|
$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(); ?>">
|
<input type="hidden" name="documentid" value="<?php print $document->getID(); ?>">
|
||||||
<?php
|
<?php
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
@ -702,7 +706,8 @@ $(document).ready(function() {
|
||||||
'element'=>'input',
|
'element'=>'input',
|
||||||
'type'=>'checkbox',
|
'type'=>'checkbox',
|
||||||
'name'=>'confirm',
|
'name'=>'confirm',
|
||||||
'value'=>1
|
'value'=>1,
|
||||||
|
'required'=>true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user