1 M
.mod_attendance
= {}; // eslint-disable-line camelcase
3 M
.mod_attendance
.init_manage
= function(Y
) { // eslint-disable-line camelcase
5 Y
.on('click', function(e
) {
6 if (e
.target
.get('checked')) {
7 Y
.all('input.attendancesesscheckbox').each(function() {
8 this.set('checked', 'checked');
11 Y
.all('input.attendancesesscheckbox').each(function() {
12 this.set('checked', '');
18 M
.mod_attendance
.set_preferences_action
= function(action
) { // eslint-disable-line camelcase
19 var item
= document
.getElementById('preferencesaction');
21 item
.setAttribute('value', action
);
23 item
= document
.getElementById('preferencesform');
24 var input
= document
.createElement("input");
25 input
.setAttribute("type", "hidden");
26 input
.setAttribute("name", "action");
27 input
.setAttribute("value", action
);
28 item
.appendChild(input
);