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:
Nathan Gray 2013-11-27 18:03:26 +00:00
parent 407f3d673e
commit fa65814f9e

View File

@ -599,8 +599,8 @@ var et2_selectbox = et2_inputWidget.extend(
if(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)
if (this._type !== "select-number")
// Remove from list of options, if multiple
if (this.options.multiple)
{
this.input.children('[value=""]').remove();
}