Widget:indexSorterGrouper: Difference between revisions
Jump to navigation
Jump to search
m Small fix and remove of logging |
Different approach |
||
Line 295: | Line 295: | ||
parents.each(function() { | parents.each(function() { | ||
var parent = $(this); | var parent = $(this); | ||
var elements = parent.nextUntil("h2", ".card-bg-small"); | // All elements inside the paragraph after the h2 which have special class | ||
var elements = parent.next().children().nextUntil("h2", ".card-bg-small"); | |||
elements.detach().sort(comparer); | elements.detach().sort(comparer); |
Revision as of 03:11, 10 November 2019
Released on this server: