implement et2_label_empty class for all set_label methods and remove no longer necessary label.et2_label > input[type="checkbox"], as it is covered by the standard case

This commit is contained in:
Ralf Becker
2016-03-31 13:05:03 +00:00
parent df2791ab63
commit ac6b0e9a94
5 changed files with 13 additions and 2 deletions

View File

@ -182,6 +182,9 @@ var et2_description = (function(){ "use strict"; return expose(et2_baseWidget.ex
this._labelContainer.append(ph);
}
}
// add class if label is empty
this._labelContainer.toggleClass('et2_label_empty', !_value || !parts[0]);
}
else
{