Changeset - 25df212137a4
[Not reviewed]
default
0 1 0
Ethan Zonca - 15 years ago 2011-03-18 00:05:33
ez@ethanzonca.com
Don't auto-add a section for now, since validation is too strict
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
scripts/scheduleInput.js
Show inline comments
 
@@ -398,25 +398,25 @@ function prettyTime(time_str)
 
jQuery(document).ready(function() {
 

	
 
	//--------------------------------------------------
 
	// Validates the form (pre-submission check)
 
	//--------------------------------------------------
 
	jQuery('#scheduleForm').validate({ debug: false });
 

	
 
	//--------------------------------------------------
 
	// Bind the class-adding method
 
	//--------------------------------------------------
 
	jQuery('#addclass').click(function() {
 
		var classNum = add_class();
 
		add_section(classNum);
 
		// add_section(classNum); // enable eventually
 
	});
 

	
 
	//--------------------------------------------------
 
	// Deletes the selected class from input
 
	//--------------------------------------------------
 
	jQuery('.deleteClass').live('click', function() {
 
		if(confirm('Delete class and all sections of this class?')) {
 
		    jQuery('.class' + jQuery(this).parent().parent().data('course_i')).remove();
 
		}
 
	});
 

	
 
	//--------------------------------------------------
0 comments (0 inline, 0 general)