Render separators with no text as and empty label
issue5641 review28311002
This commit is contained in:
1 parent
405c4e2954
commit
6c8cbe8d74
1 file changed
+3
-4
+3
-4
@@ -693,12 +693,11 @@
|
||||
this.el = jQuery('<div/>', {
|
||||
'class': 'form-separator'
|
||||
});
|
||||
this.label_el = jQuery('<label/>');
|
||||
if (text) {
|
||||
this.label_el = jQuery('<label/>', {
|
||||
text: text
|
||||
});
|
||||
this.el.append(this.label_el);
|
||||
this.label_el.text = text;
|
||||
}
|
||||
this.el.append(this.label_el);
|
||||
this.el.append(jQuery('<hr/>'));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user