Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Brian Rosner authored July 10, 2008
2  django/contrib/admin/media/js/admin/CollapsedFieldsets.js
@@ -47,7 +47,7 @@ var CollapsedFieldsets = {
47 47
         // Returns true if any fields in the fieldset have validation errors.
48 48
         var divs = fs.getElementsByTagName('div');
49 49
         for (var i=0; i<divs.length; i++) {
50  
-            if (divs[i].className.match(/\berror\b/)) {
  50
+            if (divs[i].className.match(/\berrors\b/)) {
51 51
                 return true;
52 52
             }
53 53
         }

0 notes on commit 9cbd07b

Please sign in to comment.
Something went wrong with that request. Please try again.