Make selectbox tags&search available for nextmatch header filter

This commit is contained in:
Hadi Nategh
2017-12-07 15:58:25 +01:00
parent 4073443544
commit 01b4919c7d
2 changed files with 30 additions and 0 deletions

View File

@ -862,6 +862,16 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
this._appendOptionElement(key, _options[key]);
}
}
// add an empty option for single select tags with empty_label in order
// to make allow_single_deselect option to work.
if (this.options.empty_label && this.options.tags
&& this.options.allow_single_deselect && !this.options.multiple)
{
var empty_option = jQuery(document.createElement("option"))
.attr("value", '');
empty_option.prependTo(this.input);
}
this.options.select_options = _options;
if(this.options.tags || this.options.search)