mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Selectbox options now set themselves selected
This commit is contained in:
parent
6e33c99db0
commit
a11abf6412
@ -256,7 +256,9 @@ var et2_option = et2_baseWidget.extend({
|
||||
this.supportedWidgetClasses = [et2_option];
|
||||
|
||||
this.option = $j(document.createElement("option"))
|
||||
.attr("value", this.options.value);
|
||||
.attr("value", this.options.value)
|
||||
.attr("selected", this._parent.options.value == this.options.value ?
|
||||
"selected" : "");
|
||||
|
||||
if (this.options.label)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user