django-ajax-validation icon indicating copy to clipboard operation
django-ajax-validation copied to clipboard

Handle multiple errors per field

Open epper opened this issue 14 years ago • 0 comments

If multiple errors are associated with a field, they are showed togheter in a single

  • item inside the
      list.

      This does not make sense: every field error should be inside its own

    • element.

      I suggest to edit the jquery-ajax-validation.js file changing the various occurrences of

      error.before('<ul class="errorlist"><li>' + val + '</li></ul>');
      

      to

      error.before('<ul class="errorlist"><li>' + val.join('</li><li>') + '</li></ul>');
      
  • epper avatar May 09 '10 09:05 epper