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

@ -354,6 +354,9 @@ var et2_textbox_ro = (function(){ "use strict"; return et2_valueWidget.extend([e
this.span.prepend(parts[0]);
this.span.append(parts[1]);
this.label = label;
// add class if label is empty
this.span.toggleClass('et2_label_empty', !label || !parts[0]);
},
set_value: function(_value)
{