Add et2_label_empty class to textbox_ro widget if there is no content for the label

This commit is contained in:
Hadi Nategh 2014-07-01 16:18:01 +00:00
parent 9c01142c22
commit 64329c4c0e
2 changed files with 11 additions and 0 deletions

View File

@ -287,6 +287,14 @@ var et2_textbox_ro = et2_valueWidget.extend([et2_IDetachedDOM],
{ {
_value = ""; _value = "";
} }
if (this.label !="")
{
this.span.removeClass('et2_label_empty');
}
else
{
this.span.addClass('et2_label_empty');
}
this.value_span.text(_value); this.value_span.text(_value);
}, },
/** /**

View File

@ -357,6 +357,9 @@ ul.et2_selectbox {
label.et2_label > .et2_selectbox, label.et2_label > .et2_textbox, label.et2_label > .et2_textbox_ro { label.et2_label > .et2_selectbox, label.et2_label > .et2_textbox, label.et2_label > .et2_textbox_ro {
padding-left: 5px; padding-left: 5px;
} }
label.et2_label_empty > .et2_textbox_ro{
padding-left: 0;
}
.et2_selectbox li { .et2_selectbox li {
text-decoration: none; text-decoration: none;
list-style-image: none; list-style-image: none;