Merge pull request #1473 from jaferkhan/missing-date-fields-fix

Fixed issue of missing date fields in search forms
This commit is contained in:
James Agnew 2019-10-01 05:30:43 -04:00 committed by GitHub
commit adf09dcd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@
<script th:src="@{/fa/js/all.min.js}" data-auto-replace-svg="nest"></script>
<link href="css/hapi-narrative.css" rel="stylesheet"/>
<script type="text/javascript" src="js/moment.min.js"></script>
<script type="text/javascript" src="js/moment-with-locales.min.js"></script>
<link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
<script src="js/bootstrap-datetimepicker.min.js"></script>
<link href="css/select2.css" rel="stylesheet"/>

View File

@ -331,8 +331,8 @@ function addSearchControlDate(theSearchParamName, theContainerRowNum, theRowNum,
)
);
input.datetimepicker({
pickTime: false,
showToday: true
format: "YYYY-MM-DD",
showTodayButton: true
});
// Set up the qualifier dropdown after we've initialized the datepicker, since it
// overrides all addon buttons while it inits..
@ -547,4 +547,4 @@ $( document ).ready(function() {
if (conformance) {
addSearchParamRow();
}
});
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long