mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user