Widget:indexSorterGrouper: Difference between revisions
Jump to navigation
Jump to search
With a bit of luck this will fix things |
m Small typos corrected |
||
Line 91: | Line 91: | ||
var letter = element.charAt(0); | var letter = element.charAt(0); | ||
if (letter >= "0" && letter <= "9") { | if (letter >= "0" && letter <= "9") { | ||
letter = "#" | letter = "#"; | ||
} | } | ||
return letter.toLowerCase(); | return letter.toLowerCase(); | ||
Line 238: | Line 238: | ||
return true; | return true; | ||
}); | }); | ||
} | }; | ||
tdollSorter(comparer, grouper); | tdollSorter(comparer, grouper); | ||
Line 271: | Line 271: | ||
function tdollSorterActiveButton(butt) { | function tdollSorterActiveButton(butt) { | ||
var isAscending = $(butt).is('.ascending') | var isAscending = $(butt).is('.ascending'); | ||
$('[data-tdollsortbutton="true"]').removeClass("enabled").removeClass("ascending"); | $('[data-tdollsortbutton="true"]').removeClass("enabled").removeClass("ascending"); | ||
$(butt).addClass("enabled"); | $(butt).addClass("enabled"); |
Revision as of 23:48, 26 July 2024
Released on this server: