Subversion Repositories SmartDukaan

Rev

Rev 37651 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37651 Rev 37821
Line 92... Line 92...
92
                alert("End date must be after start date");
92
                alert("End date must be after start date");
93
                return;
93
                return;
94
            }
94
            }
95
        }
95
        }
96
 
96
 
-
 
97
        // Send the table's current search text too, so the CSV matches the rows on screen.
-
 
98
        var searchTerm = $.trim($('#lead-table_filter input').val() || $('#lead-table-bottom-filter').val() || "");
97
        let endPoint = `${context}/downloadDateWiseLead?leadStatus=${status}&color=${color}&startDate=${startDate}&endDate=${endDate}`;
99
        let endPoint = `${context}/downloadDateWiseLead?leadStatus=${status}&color=${color}&startDate=${startDate}&endDate=${endDate}&searchTerm=${encodeURIComponent(searchTerm)}`;
98
        window.location.href = endPoint;
100
        window.location.href = endPoint;
99
 
101
 
100
    });
102
    });
101
 
103
 
102
    // Lead-table Search boxes (top DataTables box + bottom mirror below the table/pagination) =
104
    // Lead-table Search boxes (top DataTables box + bottom mirror below the table/pagination) =