fix(Home): enableTag true flag for sort operation

This commit is contained in:
Matthieu Bessat 2020-09-05 23:22:05 +02:00
parent 975ed6ee5d
commit 12f16c6cbc
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ organizations = shuffle(organizations)
randomBtn.onclick = () => { randomBtn.onclick = () => {
if (sort) { if (sort) {
organizations = shuffle(organizations) organizations = shuffle(organizations)
enableTag(currentTag) enableTag(currentTag, true)
sort = false sort = false
randomBtn.classList.add('enabled') randomBtn.classList.add('enabled')
sortBtn.classList.remove('enabled') sortBtn.classList.remove('enabled')
@ -100,7 +100,7 @@ sortBtn.onclick = () => {
var textB = b.name.toUpperCase() var textB = b.name.toUpperCase()
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
}) })
enableTag(currentTag) enableTag(currentTag, true)
sort = true sort = true
sortBtn.classList.add('enabled') sortBtn.classList.add('enabled')
randomBtn.classList.remove('enabled') randomBtn.classList.remove('enabled')

File diff suppressed because one or more lines are too long