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

File diff suppressed because one or more lines are too long