LSform/js : Fixed bug in LSerrors reporting.

This commit is contained in:
Benjamin Renard 2010-04-15 18:21:18 +02:00
parent e3ca766682
commit e60ba7ee61

View file

@ -244,8 +244,10 @@ var LSform = new Class({
dd.injectAfter(this.getParent());
},ul);
var dt = ul.getParent().getPrevious('dt');
dt.addClass('LSform-errors');
var dt = ul.getParent('dd.LSform').getPrevious('dt');
if ($type(dt)) {
dt.addClass('LSform-errors');
}
var layout = ul.getParent('div.LSform_layout_active');
if ($type(layout)) {