Author: brosner
Date: 2008-07-10 15:28:12 -0500 (Thu, 10 Jul 2008)
New Revision: 7879

Modified:
   
django/branches/newforms-admin/django/contrib/admin/media/js/admin/CollapsedFieldsets.js
Log:
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.

Modified: 
django/branches/newforms-admin/django/contrib/admin/media/js/admin/CollapsedFieldsets.js
===================================================================
--- 
django/branches/newforms-admin/django/contrib/admin/media/js/admin/CollapsedFieldsets.js
    2008-07-10 20:24:46 UTC (rev 7878)
+++ 
django/branches/newforms-admin/django/contrib/admin/media/js/admin/CollapsedFieldsets.js
    2008-07-10 20:28:12 UTC (rev 7879)
@@ -47,7 +47,7 @@
         // 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;
             }
         }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to