Skip to content

Commit

Permalink
Simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrossman committed Nov 9, 2015
1 parent 445fb1f commit bfc104e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,11 @@ <h4>Demo:</h4>
});

$('input[name="datefilter"]').on('apply.daterangepicker', function(ev, picker) {
$('input[name="datefilter"]').val(picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY'));
$(this).val(picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY'));
});

$('input[name="datefilter"]').on('cancel.daterangepicker', function(ev, picker) {
$('input[name="datefilter"]').val('');
$(this).val('');
});

});
Expand Down

0 comments on commit bfc104e

Please sign in to comment.