Render separators with no text as and empty label

issue5641
review28311002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-06-15 10:00:18 +02:00
1 parent 405c4e2954
commit 6c8cbe8d74
1 file changed
+3 -4
+3 -4
View File
@@ -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/>'));
}
});