vendor/assets/javascripts/webshims/extras/custom-validity.js in webshims-rails-0.4.7 vs vendor/assets/javascripts/webshims/extras/custom-validity.js in webshims-rails-1.10.3

- old
+ new

@@ -126,10 +126,10 @@ var groupTimer = {}; addCustomValidityRule('group-required', function(elem, val){ var name = elem.name; if(!name || elem.type !== 'checkbox' || !$(elem).hasClass('group-required')){return;} var checkboxes = $( (elem.form && elem.form[name]) || document.getElementsByName(name)); - var isValid = checkboxes.filter(':checked'); + var isValid = checkboxes.filter(':checked:enabled'); if(groupTimer[name]){ clearTimeout(groupTimer[name]); } groupTimer[name] = setTimeout(function(){ checkboxes