Fix regression on tags
This commit is contained in:
parent
3fe24e502e
commit
3a964098e7
@ -239,11 +239,11 @@ jQuery(document).ready(function($)
|
|||||||
{
|
{
|
||||||
$('.box.tags .item-cont').delegate('select[name="tag"]', 'change', 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()
|
$('.box.tags .item-cont select[name="tag"]').each(function()
|
||||||
{
|
{
|
||||||
if (paramTag.indexOf(this.value) === -1 && this.value != "")
|
if (params.tag.indexOf(this.value) === -1 && this.value != "")
|
||||||
paramTag.push(this.value);
|
params.tag.push(this.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.value != "")
|
if (this.value != "")
|
||||||
@ -257,7 +257,7 @@ jQuery(document).ready(function($)
|
|||||||
if (createNewElem)
|
if (createNewElem)
|
||||||
{
|
{
|
||||||
html = '<span><span class="inline">※ </span><select name="tag">';
|
html = '<span><span class="inline">※ </span><select name="tag">';
|
||||||
html += '<option value="">Aucun</option>';
|
html += '<option value="">Aucun filtre</option>';
|
||||||
for (a of originalAvailableOptions.tags)
|
for (a of originalAvailableOptions.tags)
|
||||||
html += '<option value="' + a + '">' + a + '</option>';
|
html += '<option value="' + a + '">' + a + '</option>';
|
||||||
html += '</select></span>';
|
html += '</select></span>';
|
||||||
|
Loading…
Reference in New Issue
Block a user