Fix regression on tags
This commit is contained in:
		@@ -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">※ </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>';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user