vtfuture / BForms

Bootstrap Forms for ASP.NET MVC
MIT License
62 stars 33 forks source link

bforms.validate.js: using showErrors with a validation summary doesn't work #162

Closed CezarCretu closed 10 years ago

CezarCretu commented 10 years ago

To reproduce:

var validated = $("form").validate();
validated.showErrors({"BsFormError": "test"}, true);

No summary will be shown. Seems to be introduced in 772a42e1. The summary is shown at line 434, but it is removed at line 453 since there's no element to be referenced to it and it isn't added in the errorList array.