From 53cd353af0d18c55c1ed1f31e76f44249c20baaa Mon Sep 17 00:00:00 2001 From: jirkakrepl Date: Mon, 2 Aug 2021 15:36:34 +0200 Subject: [PATCH] refactor: can sort td wrapped inside other elements can sort before it could only sort --- Scripts/bootstrap-sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/bootstrap-sortable.js b/Scripts/bootstrap-sortable.js index 28f7f82..8d3454c 100644 --- a/Scripts/bootstrap-sortable.js +++ b/Scripts/bootstrap-sortable.js @@ -295,7 +295,7 @@ } // remove rows that should not be sorted - var rows = $table.children('tbody').children('tr'); + var rows = $table.children('tbody').find('tr'); var fixedRows = []; $(rows.filter('[data-disablesort="true"]').get().reverse()).each(function (index, fixedRow) { var $fixedRow = $(fixedRow);