Fix regression on tags

This commit is contained in:
Théo Marchal 2021-03-06 01:32:09 +01:00
parent 3fe24e502e
commit 3a964098e7

View File

@ -239,11 +239,11 @@ jQuery(document).ready(function($)
{
$('.box.tags .item-cont').delegate('select[name="tag"]', 'change', function()
{
paramTag = []; // collect all tags from all dropdowns
params.tag = []; // collect all tags from all dropdowns
$('.box.tags .item-cont select[name="tag"]').each(function()
{
if (paramTag.indexOf(this.value) === -1 && this.value != "")
paramTag.push(this.value);
if (params.tag.indexOf(this.value) === -1 && this.value != "")
params.tag.push(this.value);
});
if (this.value != "")
@ -257,7 +257,7 @@ jQuery(document).ready(function($)
if (createNewElem)
{
html = '<span><span class="inline">&#x203B;&nbsp;</span><select name="tag">';
html += '<option value="">Aucun</option>';
html += '<option value="">Aucun filtre</option>';
for (a of originalAvailableOptions.tags)
html += '<option value="' + a + '">' + a + '</option>';
html += '</select></span>';