mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
35 lines
838 B
JavaScript
35 lines
838 B
JavaScript
function set_item_focus(itemid) {
|
|
var item = document.getElementById(itemid);
|
|
if(item){
|
|
item.focus();
|
|
}
|
|
}
|
|
|
|
function feedbackGo2delete(form) {
|
|
form.action = M.cfg.wwwroot+'/mod/feedback/delete_completed.php';
|
|
form.submit();
|
|
}
|
|
|
|
function setcourseitemfilter(item, item_typ) {
|
|
document.report.courseitemfilter.value = item;
|
|
document.report.courseitemfiltertyp.value = item_typ;
|
|
document.report.submit();
|
|
}
|
|
|
|
|
|
M.mod_feedback = {};
|
|
|
|
M.mod_feedback.init_sendmessage = function(Y) {
|
|
Y.on('click', function(e) {
|
|
Y.all('input.usercheckbox').each(function() {
|
|
this.set('checked', 'checked');
|
|
});
|
|
}, '#checkall');
|
|
|
|
Y.on('click', function(e) {
|
|
Y.all('input.usercheckbox').each(function() {
|
|
this.set('checked', '');
|
|
});
|
|
}, '#checknone');
|
|
};
|