Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 31 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31 Rev 39
Line 12... Line 12...
12
	});
12
	});
13
}
13
}
Line 14... Line 14...
14
 
14
 
Line 15... Line 15...
15
function initialiserLignesCliquables() {
15
function initialiserLignesCliquables() {
-
 
16
	
16
	
17
	$(".observations_individu").each(function() {
17
	$('.observations_individu').bind('click', function() {
18
		$(this).bind('click', function() {
18
		
19
			
19
		//$(this).children('td a').click();
20
			// pour le moment un clic sur la ligne envoie sur la page d'édition
20
		window.alert($(this).children('td').attr('href'));
21
			// TODO: faire une modification en ajax
21
		//window.location = $(this).children('td a').attr('href');
22
			window.location = $(this).find("a.lien_modifier").attr('href');
-
 
23
			
22
		
24
			return false;
Line 23... Line 25...
23
		return false;
25
		});
Line 24... Line 26...
24
	});
26
	});