Widget:indexSorterGrouper: Difference between revisions
Jump to navigation
Jump to search
m Bugfix |
Added loading indicator and made the buttons disabled initially |
||
Line 18: | Line 18: | ||
element.data('rarity', rarity); | element.data('rarity', rarity); | ||
}); | }); | ||
$(".gf-button").prop('disabled', false); | |||
$('.removeAfterInitIsg').remove(); | |||
// Once everything is ready, default-sort it | // Once everything is ready, default-sort it | ||
Line 272: | Line 275: | ||
} | } | ||
</script><div style="display:inline-block"> | </script><div style="display:inline-block"> | ||
<button class="gf-button" data-tdollsortbutton="true" data-initialsort="true" onclick="orderByClassRarityName(this);">By Class>Rarity>Name</button> | <button class="gf-button" data-tdollsortbutton="true" disabled data-initialsort="true" onclick="orderByClassRarityName(this);">By Class>Rarity>Name</button> | ||
<button class="gf-button" data-tdollsortbutton="true" onclick="orderByRarityClassName(this);">By Rarity>Class>Name</button> | <button class="gf-button" data-tdollsortbutton="true" disabled onclick="orderByRarityClassName(this);">By Rarity>Class>Name</button> | ||
<button class="gf-button" data-tdollsortbutton="true" onclick="orderByName(this);">By Name</button> | <button class="gf-button" data-tdollsortbutton="true" disabled onclick="orderByName(this);">By Name</button> | ||
<button class="gf-button" data-tdollsortbutton="true" onclick="orderByIndex(this);">By Index</button></div> | <button class="gf-button" data-tdollsortbutton="true" disabled onclick="orderByIndex(this);">By Index</button> | ||
<div style="width:18px; height:18px;" class="loading2 removeAfterInitIsg"> </div></div> | |||
</includeonly> | </includeonly> | ||
Revision as of 22:51, 1 June 2018
Released on this server: