Skip to content
Snippets Groups Projects
Commit ec5b2e48 authored by Valentin's avatar Valentin
Browse files

disabled useless dates. formatted date.

parent acd3ebad
No related branches found
No related tags found
1 merge request!1Feature request2
...@@ -271,13 +271,14 @@ function format(d) { ...@@ -271,13 +271,14 @@ function format(d) {
$(document).ready(function() { $(document).ready(function() {
$("#datepicker").daterangepicker({ $("#datepicker").daterangepicker({
locale: {
format: "YYYY-MM-DD",
separator: "<>"
},
opens: 'left', opens: 'left',
todayHighlight: 'TRUE', minDate: moment().subtract(7, "days"),
autoApply: false, maxDate: new Date(),
defaultDate: new Date() defaultDate: new Date(),
}, function(start, end, label) {
dateFrom = start.format('YYYY-MM-DD');
dateTo = end.format('YYYY-MM-DD');
}).on('apply.daterangepicker', function(ev, picker) { }).on('apply.daterangepicker', function(ev, picker) {
getPastResults() getPastResults()
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment