Display student age at period start on attributions view
This commit is contained in:
parent
473493542c
commit
894cc172a8
4 changed files with 27 additions and 10 deletions
|
|
@ -144,14 +144,16 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
$('#student_select').change(function(ev) {
|
||||
$('#student_detail').load('/student/' + $(this).val() + '/summary/', function() {
|
||||
$('div#previous_stages_head').toggle(function() {
|
||||
$('ul#previous_stages_list').toggle();
|
||||
$(this).find('img').attr('src', static_url + 'img/open.png');
|
||||
}, function() {
|
||||
$('ul#previous_stages_list').toggle();
|
||||
$(this).find('img').attr('src', static_url + 'img/closed.png');
|
||||
});
|
||||
$('#student_detail').load(
|
||||
'/student/' + $(this).val() + '/summary/?period=' + $.cookie('periode'),
|
||||
function() {
|
||||
$('div#previous_stages_head').toggle(function() {
|
||||
$('ul#previous_stages_list').toggle();
|
||||
$(this).find('img').attr('src', static_url + 'img/open.png');
|
||||
}, function() {
|
||||
$('ul#previous_stages_list').toggle();
|
||||
$(this).find('img').attr('src', static_url + 'img/closed.png');
|
||||
});
|
||||
}).addClass("filled");
|
||||
current_student = $(this).val();
|
||||
if (current_avail !== null) $('input#valid_training').show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue