mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Better handling for detached label, fixes errors if there is no label
This commit is contained in:
parent
b4b1eee57a
commit
777e1bec1e
@ -788,7 +788,7 @@ class nextmatch_widget
|
||||
if($none_option)
|
||||
{
|
||||
array_unshift($cats, array(
|
||||
'id' => '',
|
||||
'id' => $prefix.'',
|
||||
'name' => 'None'
|
||||
));
|
||||
}
|
||||
|
@ -1325,6 +1325,13 @@ var et2_link_string = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
* passed to the "setDetachedAttributes" function in the same order.
|
||||
*/
|
||||
getDetachedNodes: function() {
|
||||
// Create the label container if it didn't exist yet
|
||||
if (this._labelContainer == null)
|
||||
{
|
||||
this._labelContainer = $j(document.createElement("label"))
|
||||
.addClass("et2_label");
|
||||
this.getSurroundings().insertDOMNode(this._labelContainer[0]);
|
||||
}
|
||||
return [this.list[0], this._labelContainer[0]];
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user