Changeset - 4158333728ac
[Not reviewed]
default
0 1 0
ethanzonca - 15 years ago 2010-09-25 01:35:08

Cleaned up JS
1 file changed with 0 insertions and 22 deletions:
0 comments (0 inline, 0 general)
scripts/scheduleInput.js
Show inline comments
 
@@ -30,28 +30,6 @@
 
		"<p class=\"error\">Pick a day!</p>" 
 
	); 
 

	
 
/* Doesn't work right now:  */ /*
 
	jQuery.validator.addMethod( 
 
		"daysRequired", 
 
		function(value, element) { 
 
			var numChecked = 0;
 
			jQuery(document).find('.daysRequire').each(function () {
 
				jQuery('#scheduleForm').append('<p>Found something!</p>');
 
				if(this.value != "none")
 
					numChecked++;
 
			});
 
			jQuery('#scheduleForm').append('<p>Finished each loop, found ' + numChecked + ' checked boxes</p>');
 

	
 
			if (numChecked >= 1) 
 
			{ 
 
				return false; 
 
			} 
 
			else return true; 
 
		}, 
 
		"<p class=\"error\">Please select one or more days!.</p>" 
 
	); 
 
*/
 

	
 
	jQuery.validator.addClassRules("selectRequired", {
 
		selectNone: true
 
	});
0 comments (0 inline, 0 general)