MDL-22088, added missing parameters for group interface
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ echo '</div>'."\n";
|
||||
echo '</form>'."\n";
|
||||
|
||||
if (ajaxenabled()) {
|
||||
$PAGE->requires->js_init_call('M.core_group.init_index');
|
||||
$PAGE->requires->js_init_call('M.core_group.init_index', array($CFG->wwwroot, $courseid));
|
||||
}
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
+4
-4
@@ -40,7 +40,7 @@ M.core_group.init_hover_events = function(Y, events) {
|
||||
}
|
||||
}
|
||||
|
||||
M.core_group.init_index = function(Y) {
|
||||
M.core_group.groupsCombo = new UpdatableGroupsCombo();
|
||||
M.core_group.membersCombo = new UpdatableMembersCombo;
|
||||
}
|
||||
M.core_group.init_index = function(Y, wwwroot, courseid) {
|
||||
M.core_group.groupsCombo = new UpdatableGroupsCombo(wwwroot, courseid);
|
||||
M.core_group.membersCombo = new UpdatableMembersCombo(wwwroot, courseid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user