blob: 6ca291b71726f085ecfae8330110464bd59c6586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
STUDIP.domReady(function() {
if ($('.sem-tree-assigned-root > ul > li').length == 0) {
$('.sem-tree-assigned-root').addClass('hidden-js');
}
});
STUDIP.ready(function() {
$('.course-wizard-step-0 *:input:not(input[type=submit])').each(function () {
$(this).attr(
'tabindex',
$(this).closest('section,footer').css('order')
);
});
$('#wizard-coursetype').on('change', function() {
let semtype = $(this).val();
let mandatory_types = $('#wizard-maxmember').parent('section').data('mandatory');
if (mandatory_types.includes(semtype)) {
$('#wizard-maxmember').parent('section').show();
} else {
$('#wizard-maxmember').parent('section').hide();
}
});
});
|