mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +01:00
LSform: fix displaying multiple errors on same field (on Ajax submit)
This commit is contained in:
parent
b104454603
commit
077a44fdf9
1 changed files with 2 additions and 1 deletions
|
@ -386,7 +386,8 @@ var LSform = new Class({
|
||||||
addError: function(errors,name) {
|
addError: function(errors,name) {
|
||||||
var ul = $(name);
|
var ul = $(name);
|
||||||
if ($type(ul)) {
|
if ($type(ul)) {
|
||||||
errors = new Array(errors);
|
if ($type(errors) != 'array')
|
||||||
|
errors = new Array(errors);
|
||||||
errors.each(function(txt){
|
errors.each(function(txt){
|
||||||
var dd = new Element('dd');
|
var dd = new Element('dd');
|
||||||
dd.addClass('LSform');
|
dd.addClass('LSform');
|
||||||
|
|
Loading…
Reference in a new issue