Widget:indexSorterGrouper: Difference between revisions
Jump to navigation
Jump to search
m Small fix for index group header |
m Bugfix |
||
Line 227: | Line 227: | ||
var nextElementTen = Math.ceil(parseInt(nextElement.data('index')) / 10) * 10; | var nextElementTen = Math.ceil(parseInt(nextElement.data('index')) / 10) * 10; | ||
if (currentTen !== nextElementTen) { | if (currentTen !== nextElementTen) { | ||
if (!isNaN(nextElementTen)) { | if (!isNaN(nextElementTen)) { | ||
if (sortOrder == -1) { | if (sortOrder == -1) { | ||
Line 233: | Line 232: | ||
nextElementTen -= 9; | nextElementTen -= 9; | ||
} | } | ||
var groupHeaderText = getNumberText(currentTen) + "..." + getNumberText(nextElementTen); | |||
var groupHeader = $("<h3 />").text(groupHeaderText).addClass("addedbysorter"); | var groupHeader = $("<h3 />").text(groupHeaderText).addClass("addedbysorter"); |
Revision as of 19:17, 1 May 2018
Released on this server: