imqishi / jquery-datatables-column-filter

Add features and optimize original things to dataTables-columnFilter.
1 stars 0 forks source link

Code for determining the ColumnIndex flawed? #120

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Shouldn't this:

        function _fnColumnIndex(iColumnIndex) {
            if (properties.bUseColVis)
                return iColumnIndex;
            else
                return oTable.fnSettings().oApi._fnVisibleToColumnIndex(oTable.fnSettings(), iColumnIndex);
            //return iColumnIndex;
            //return oTable.fnSettings().oApi._fnColumnIndexToVisible(oTable.fnSettings(), iColumnIndex);
        }

be that:

        function _fnColumnIndex(iColumnIndex) {
            if (!properties.bUseColVis)
                return iColumnIndex;
            else
                return oTable.fnSettings().oApi._fnVisibleToColumnIndex(oTable.fnSettings(), iColumnIndex);
            //return iColumnIndex;
            //return oTable.fnSettings().oApi._fnColumnIndexToVisible(oTable.fnSettings(), iColumnIndex);
        }

Original issue reported on code.google.com by julian.s...@gmail.com on 2 May 2013 at 12:12