Изменения документа Make All Tables Sortable Macro

Редактировал(а) Coluns 19.11.2023

От версии 3.1
отредактировано Coluns
на 19.11.2023
Изменить комментарий: Install extension [org.xwiki.contrib:macro-sortabletables/1.1]
К версии 1.1
отредактировано Coluns
на 16.11.2022
Изменить комментарий: Install extension [org.xwiki.contrib:macro-sortabletables/1.0]

Сводка

Подробности

XWiki.JavaScriptExtension[0]
Код
... ... @@ -16,14 +16,9 @@
16 16   }
17 17  
18 18   $$("#xwikicontent table").each(function(table) {
19 - var tableClass = table.getAttribute('class')
20 - if (tableClass !== null) {
21 - if (tableClass.indexOf('xwiki-livetable') >= 0 || tableClass.indexOf('nosort') >= 0) {
22 - // ignore livetables; they take care of themselves
23 - // also skip all tabes with a class containing "nosort"
24 - // which servers as a marker that these tables should not be sorted
25 - return;
26 - }
19 + if (table.getAttribute('class') !== null && table.getAttribute('class').indexOf('xwiki-livetable') >= 0) {
20 + // ignore livetables; they take care of themselves
21 + return;
27 27   }
28 28   tableCounter++;
29 29   if (macro_sortabletables_sortable) {
XWiki.WikiMacroClass[0]
Кэшировано
... ... @@ -1,0 +1,1 @@
1 +Нет
Асинхронная отрисовка
... ... @@ -1,0 +1,1 @@
1 +Нет
Описание
... ... @@ -1,1 +1,1 @@
1 -Makes all tables in the content of the current page sortable.
1 +Makes all tables in the content of the current page sorteable.