mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-08 00:59:04 -05:00
Get selected state for export using jQuery (#539)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user