Skip to content

Commit f6393f8

Browse files
author
dtbuild
committed
cba6f90e05f48403e4a59b5de4168c8eedb8caa8 Dev: Allow compatiblity with all of DT 2.3.x
Sync to source repo @cba6f90e05f48403e4a59b5de4168c8eedb8caa8
1 parent 2ee35af commit f6393f8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

datatables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
],
1212
"src-repo": "http://github.com/DataTables/ColumnControl",
1313
"last-tag": "1.0.3",
14-
"last-sync": "90c24b0cceaf10e3fc5f41f4e26eadaf6a2e0d11"
14+
"last-sync": "cba6f90e05f48403e4a59b5de4168c8eedb8caa8"
1515
}

js/dataTables.columnControl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ var order = {
980980
.icon('orderAsc')
981981
.className(config.className);
982982
if (!config.statusOnly) {
983-
dt.order.listener(btn.element(), function () { return [_this.idx()]; }, function () { });
983+
dt.order.listener(btn.element(), DataTable.versionCheck('2.3.2') ? function () { return [_this.idx()]; } : this.idx(), function () { });
984984
}
985985
dt.on('order', function (e, s, order) {
986986
var found = order.find(function (o) { return o.col === _this.idx(); });

js/dataTables.columnControl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/dataTables.columnControl.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

js/dataTables.columnControl.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ var order = {
940940
.icon('orderAsc')
941941
.className(config.className);
942942
if (!config.statusOnly) {
943-
dt.order.listener(btn.element(), function () { return [_this.idx()]; }, function () { });
943+
dt.order.listener(btn.element(), DataTable.versionCheck('2.3.2') ? function () { return [_this.idx()]; } : this.idx(), function () { });
944944
}
945945
dt.on('order', function (e, s, order) {
946946
var found = order.find(function (o) { return o.col === _this.idx(); });

0 commit comments

Comments
 (0)