From 3b4fbce6f67834493dfe8cbade25f4aab2cd78a1 Mon Sep 17 00:00:00 2001 From: jekkos Date: Tue, 10 May 2016 08:06:15 +0200 Subject: [PATCH] Get selected state for export using jQuery (#539) --- application/views/reports/date_input_excel_export.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/application/views/reports/date_input_excel_export.php b/application/views/reports/date_input_excel_export.php index bc3d6df00..3c2347a82 100644 --- a/application/views/reports/date_input_excel_export.php +++ b/application/views/reports/date_input_excel_export.php @@ -59,15 +59,7 @@ $(document).ready(function() { var sale_type = $("#sale_type").val(); var location = window.location + '/' + start_date + '/' + end_date + '/' + sale_type; - - if ($("input[name='export_excel']").is(':checked')) - { - location += '/' + 1; - } - else - { - location += '/' + 0; - } + location += '/' + $("input[name='export_excel']:checked").val(); window.location = location; });