Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vedmack committed Sep 17, 2015
1 parent 733cf7d commit dd61e6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Fixed auto complete filter
* Fixed select2 (v.4.x) with server side processing https://github.com/vedmack/yadcf/issues/216
* Fixed select2 reset https://github.com/vedmack/yadcf/issues/232
* Some of additional closed issues https://github.com/vedmack/yadcf/issues/227 / https://github.com/vedmack/yadcf/issues/236


## 0.8.8
Expand Down
7 changes: 4 additions & 3 deletions jquery.dataTables.yadcf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Yet Another DataTables Column Filter - (yadcf)
*
* File: jquery.dataTables.yadcf.js
* Version: 0.8.9.beta.17 (grab latest stable from https://github.com/vedmack/yadcf/releases)
* Version: 0.8.9.beta.18 (grab latest stable from https://github.com/vedmack/yadcf/releases)
*
* Author: Daniel Reznick
* Info: https://github.com/vedmack/yadcf
Expand Down Expand Up @@ -3138,8 +3138,9 @@ var yadcf = (function ($) {
var col_num,
column_number_filter,
table_selector_jq_friendly = generateTableSelectorJQFriendly(oTable.selector);
if (json === undefined) {
if (json == undefined) {
console.log('datatables xhr.dt event came back with null as data (nothing for yadcf to do with it).');
return;
}
if (settings.oSavedState !== null) {
initColReorder2(settings, table_selector_jq_friendly);
Expand All @@ -3148,7 +3149,7 @@ var yadcf = (function ($) {
if (yadcf.getOptions(settings.oInstance.selector).hasOwnProperty(col_num)) {
if (json['yadcf_data_' + col_num] !== undefined) {
column_number_filter = col_num;
if (settings.oSavedState !== null) {
if (settings.oSavedState !== null && plugins[table_selector_jq_friendly] !== undefined) {
column_number_filter = plugins[table_selector_jq_friendly].ColReorder[col_num];
}
yadcf.getOptions(settings.oInstance.selector)[col_num].data = json['yadcf_data_' + column_number_filter];
Expand Down

0 comments on commit dd61e6a

Please sign in to comment.