diff --git a/application/views/sales/manage.php b/application/views/sales/manage.php index f3c16be9e..f74b9c07f 100755 --- a/application/views/sales/manage.php +++ b/application/views/sales/manage.php @@ -11,10 +11,7 @@ $(document).ready(function() // load the preset datarange picker load->view('partial/daterangepicker'); ?> - // set the beginning of time as starting date - $('#daterangepicker').data('daterangepicker').setStartDate("config->item('dateformat'), mktime(0,0,0,01,01,2010));?>"); - // update the hidden inputs with the selected dates before submitting the search data - var start_date = ""; + $("#daterangepicker").on('apply.daterangepicker', function(ev, picker) { table_support.refresh(); });