Node search by date (but not time)
This commit is contained in:
@@ -271,4 +271,25 @@ $(document).ready(function() {
|
||||
$('.tab-pane').on('hidden', '.nd_modal', function () {
|
||||
$(this).toggleClass('nd_deep-horizon');
|
||||
});
|
||||
|
||||
// activate daterange plugin
|
||||
$('#daterange').daterangepicker({
|
||||
ranges: {
|
||||
'Today': [moment(), moment()]
|
||||
,'Yesterday': [moment().subtract('days', 1), moment().subtract('days', 1)]
|
||||
,'Last 7 Days': [moment().subtract('days', 6), moment()]
|
||||
,'Last 30 Days': [moment().subtract('days', 29), moment()]
|
||||
,'This Month': [moment().startOf('month'), moment().endOf('month')]
|
||||
,'Last Month': [moment().subtract('month', 1).startOf('month'), moment().subtract('month', 1).endOf('month')]
|
||||
}
|
||||
,minDate: '2004-01-01'
|
||||
,showDropdowns: true
|
||||
,timePicker: false
|
||||
,opens: 'left'
|
||||
,format: 'YYYY-MM-DD'
|
||||
,separator: ' to '
|
||||
}
|
||||
,function(start, end) {
|
||||
$('#daterange').parent('.clearfix').addClass('success');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user