Custom filter conflicts with built in filters

Custom filter conflicts with built in filters

ksilexksilex Posts: 3Questions: 1Answers: 0

Hello forum.
I made custom date range filter following this guide: https://datatables.net/examples/plug-ins/range_filtering.html
And it works perfectly, but using default search bar and sorting shows not records, default filters works only if previously table filtered by date. Compared to guide code i made only minor changes. Any hint guys?
test case: http://live.datatables.net/biyekuya/3/edit

$.fn.dataTable.ext.search.push(
        function( settings, data, dataIndex ) {
        var min = day+"."+month+"."+year+", "+h+":"+m;
        var max = day1+"."+month1+"."+year1+", "+h1+":"+m1;
            var date = data[1] || 0;//use data for date column
            if ((min == null && max == null)||
            (min == null && date <= max) ||
            (max == null && date >= min) ||
            (date <= max && date >= min))
            {
            return true;
        }
        return false;
        }
            
    );

This discussion has been closed.