Ticket #7576: fieldset_has_errors.patch

File fieldset_has_errors.patch, 632 bytes (added by Jonas von Poser, 16 years ago)

Patch to fix display of collapsed fieldset on errors

  • contrib/admin/media/js/admin/CollapsedFieldsets.js

     
    4747        // Returns true if any fields in the fieldset have validation errors.
    4848        var divs = fs.getElementsByTagName('div');
    4949        for (var i=0; i<divs.length; i++) {
    50             if (divs[i].className.match(/\berror\b/)) {
     50            if (divs[i].className.match(/\berrors\b/)) {
    5151                return true;
    5252            }
    5353        }
Back to Top