mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
dont replace value&label "" with empty_label, as empty_label is allways added, ignoring it here, to not add it twice
This commit is contained in:
parent
190a98499a
commit
200c9e55fe
@ -237,14 +237,13 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
*/
|
||||
_appendOptionElement: function(_value, _label, _title, dom_element) {
|
||||
if(_value == "" && (_label == null || _label == "")) {
|
||||
_label = this.options.empty_label;
|
||||
return; // empty_label is added in set_select_options anyway, ignoring it here to not add it twice
|
||||
}
|
||||
|
||||
if(this.input == null)
|
||||
{
|
||||
return this._appendMultiOption(_value, _label, _title, dom_element);
|
||||
}
|
||||
|
||||
|
||||
var option = $j(document.createElement("option"))
|
||||
.attr("value", _value)
|
||||
@ -568,7 +567,6 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
// Add the select_options
|
||||
for (var key in _options)
|
||||
{
|
||||
|
||||
// Translate the options
|
||||
if(!this.options.no_lang)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user