/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Functions */
$(document).ready(function(){
	//$('#addCourse').hide();
	$('#editCourse').hide();
	
	$('body').click(function(e){
		$('#addCourse').hide();
		$('#editCourse').hide();
	});	
	
	$('#addCourse').click(function(e){
		e.stopPropagation();
	});	
	$('#editCourse').click(function(e){
		e.stopPropagation();
	});	
	
	
	$('#addCoursebutton').click(function(e){
		var target = $('#addCourse');
		if(target.is(":hidden")){
			target.fadeIn(300);
			e.stopPropagation();
		}
		else{
			target.fadeOut(300);
		}
		
	});
	
	$('.manageCourseButton').click(function(e){
		var target = $('#editCourse');
		if(target.is(":hidden")){
			target.fadeIn(300);
			e.stopPropagation();
		}
		else{
			target.fadeOut(300);
		}
		
	});

});

window.onkeyup = function(event){
	if(event.keyCode==27){
		$('#addCourse').fadeOut(300);
	}
}