Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

newforms-admin: Fixed #5873 -- When a validation error occurs in a fi…

…eldset 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
  • Loading branch information...
commit 9cbd07b681050ab37dc0a36f43d483e99c0a06ce 1 parent 4772550
@brosner brosner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/media/js/admin/CollapsedFieldsets.js
View
2  django/contrib/admin/media/js/admin/CollapsedFieldsets.js
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.