Skip to content

Commit

Permalink
Remove unnecessary js
Browse files Browse the repository at this point in the history
  • Loading branch information
AceFire6 committed Sep 18, 2018
1 parent e4b49d1 commit 4743215
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ordering/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,16 @@
});

$('.date-picker').daterangepicker({
autoApply: false,
autoUpdateInput: false,
showDropdowns: true,
minDate: '2012-10-10',
autoUpdateInput: false,
singleDatePicker: true,
locale: {
format: 'YYYY-MM-DD',
cancelLabel: 'Clear'
}
}).on('apply.daterangepicker', function(ev, picker) {
$(this).val(picker.startDate.format('YYYY-MM-DD'));
}).on('cancel.daterangepicker', function(ev, picker) {
$(picker).val('');
});
};

Expand Down

0 comments on commit 4743215

Please sign in to comment.