Changeset - 8b19ff9fee80
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-09-25 01:56:45
ohnobinki@ohnopublishing.net
Fix verification of class="daysRequired" elements: the validator was searching for siblings, not cousins.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
scripts/scheduleInput.js
Show inline comments
 
@@ -15,13 +15,13 @@
 
		"<p class=\"error\">Please select a time</p>" 
 
	); 
 
	jQuery.validator.addMethod( 
 
		"daysRequired", 
 
		function(value, element) { 
 
			var checkedCount = 0;
 
			jQuery(element).parent().children('.daysRequired:checked').each( function() {
 
			jQuery(element).parent().parent().children().children('.daysRequired:checked').each( function() {
 
				checkedCount++;
 
			});
 
			if (checkedCount == 0) 
 
			{ 
 
				return false; 
 
			} 
0 comments (0 inline, 0 general)