Ticket #7576: fieldset_has_errors.patch
File fieldset_has_errors.patch, 632 bytes (added by , 16 years ago) |
---|
-
contrib/admin/media/js/admin/CollapsedFieldsets.js
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 }