mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
newforms-admin: Fixed #5873 -- When a validation error occurs in a fieldset that is collapsed properly idenitfy it so it uncollapses to reveal the error. Thanks Jonas for the patch and Ariel Calzada for the report.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4772550a3c
commit
9cbd07b681
@ -47,7 +47,7 @@ var CollapsedFieldsets = {
|
||||
// Returns true if any fields in the fieldset have validation errors.
|
||||
var divs = fs.getElementsByTagName('div');
|
||||
for (var i=0; i<divs.length; i++) {
|
||||
if (divs[i].className.match(/\berror\b/)) {
|
||||
if (divs[i].className.match(/\berrors\b/)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user