Adds global setting In Display tab to disable JS based table sort in wiki content (#40588).

Patch by Jens Krämer (user:jkraemer).

git-svn-id: https://svn.redmine.org/redmine/trunk@23401 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-12-11 19:08:27 +00:00
parent dbd6bb4073
commit c065e4374a
6 changed files with 12 additions and 5 deletions

View File

@@ -1130,6 +1130,7 @@ function setupAttachmentDetail() {
}
function setupWikiTableSortableHeader() {
if (typeof Tablesort === 'undefined') { return; }
$('div.wiki table').each(function(i, table){
if (table.rows.length < 3) return true;
var tr = $(table.rows).first();