forked from extern/egroupware
Extend exception to all single select:
- Multi-select you don't select the empty/none option, just nothing - Single select needs the empty/none option, even with chosen on see r44551, 44631
This commit is contained in:
parent
407f3d673e
commit
fa65814f9e
@ -599,8 +599,8 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
if(this.options.empty_label)
|
if(this.options.empty_label)
|
||||||
{
|
{
|
||||||
this.input.attr("data-placeholder", this.egw().lang(this.options.empty_label));
|
this.input.attr("data-placeholder", this.egw().lang(this.options.empty_label));
|
||||||
// Remove from list of options, if there (exception:"select-number" type)
|
// Remove from list of options, if multiple
|
||||||
if (this._type !== "select-number")
|
if (this.options.multiple)
|
||||||
{
|
{
|
||||||
this.input.children('[value=""]').remove();
|
this.input.children('[value=""]').remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user