mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Get selectbox _appendOptionElement working with empty_label automatically
This commit is contained in:
parent
b1b1ab820a
commit
a5ea1f78d9
@ -95,6 +95,10 @@ var et2_selectbox = et2_inputWidget.extend({
|
||||
},
|
||||
|
||||
_appendOptionElement: function(_value, _label, _title) {
|
||||
if(_value == "" && (_label == null || _label == "")) {
|
||||
_label = this.options.empty_label;
|
||||
}
|
||||
|
||||
var option = $j(document.createElement("option"))
|
||||
.attr("value", _value)
|
||||
.text(_label);
|
||||
@ -103,7 +107,6 @@ var et2_selectbox = et2_inputWidget.extend({
|
||||
{
|
||||
option.attr("title", _title);
|
||||
}
|
||||
|
||||
option.appendTo(this.input);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user