MDL-21403 hardcoded JS legacy code should not use new $PAGE->requires-> api, switchin...
[moodle.git] / mod / assignment / assignment.js
1 function setNext(){
2     document.getElementById('submitform').mode.value = 'next';
3     document.getElementById('submitform').userid.value = assignment.nextid;
4 }
6 function saveNext(){
7     document.getElementById('submitform').mode.value = 'saveandnext';
8     document.getElementById('submitform').userid.value = assignment.nextid;
9     document.getElementById('submitform').saveuserid.value = assignment.userid;
10     document.getElementById('submitform').menuindex.value = document.getElementById('submitform').grade.selectedIndex;
11 }
13 function initNext(nextid, usserid) {
14         assignment.nextid = nextid;
15         assignment.userid = userid;
16 }