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