mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +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) {
|
||||
var ul = $(name);
|
||||
if ($type(ul)) {
|
||||
errors = new Array(errors);
|
||||
if ($type(errors) != 'array')
|
||||
errors = new Array(errors);
|
||||
errors.each(function(txt){
|
||||
var dd = new Element('dd');
|
||||
dd.addClass('LSform');
|
||||
|
|
Loading…
Reference in a new issue