From 6c32eb197d70787f85137662037c474d25521a6b Mon Sep 17 00:00:00 2001 From: Hughes Monget Date: Tue, 14 Nov 2023 14:18:57 +0100 Subject: [PATCH] Update column index --- ColReorderWithResize.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ColReorderWithResize.js b/ColReorderWithResize.js index e59331c..3ecfe91 100644 --- a/ColReorderWithResize.js +++ b/ColReorderWithResize.js @@ -1028,6 +1028,7 @@ $.extend( ColReorder.prototype, { that = this, aoColumns = this.s.dt.aoColumns; + var col = parseInt($(nTh).attr('data-column-index'), 10); if (!isNaN(col)) { i = col; } function addEventsHandler() { /* Add event handlers to the document */