Skip to content

Commit

Permalink
MDL-22088, added missing parameters for group interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed May 17, 2010
1 parent eece88b commit 80db8e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion group/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
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();
Expand Down
8 changes: 4 additions & 4 deletions group/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 80db8e8

Please sign in to comment.