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