From 89b2b19440ef0ff914e6b0daa7eff96588d102a0 Mon Sep 17 00:00:00 2001 From: moorcroftlad Date: Thu, 31 May 2018 09:34:46 +0100 Subject: [PATCH] Add ability to disable sort click on table headers --- 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..0ce0ac0 100644 --- a/Scripts/bootstrap-sortable.js +++ b/Scripts/bootstrap-sortable.js @@ -198,7 +198,7 @@ } // Add click event to table header - $document.on('click', 'table.sortable>thead th[data-defaultsort!="disabled"]', function (e) { + $document.on('click', 'table.sortable>thead th[data-defaultsort!="disabled"][data-disableclick!="true"]', function (e) { sortByColumn(this); });