group-javascript MDL-22935 Fixed problematic conversion to Moodle 2 JS methods, Thanks Paul for the patch

This commit is contained in:
Sam Hemelryk
2010-07-23 04:19:42 +00:00
parent 315d4971f3
commit f19497f22e
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -146,6 +146,6 @@ echo html_writer::table($groupinfotable);
$potentialmembersselector->print_user_summaries($course->id);
//this must be after calling display() on the selectors so their setup JS executes first
$PAGE->requires->js_function_call('init_add_remove_members_page');
$PAGE->requires->js_init_call('init_add_remove_members_page', null, false, $potentialmembersselector->get_js_module());
echo $OUTPUT->footer();
+8
View File
@@ -729,6 +729,14 @@ class group_non_members_selector extends groups_user_selector_base {
return parent::output_user($user) . ' (' . $user->numgroups . ')';
}
/**
* Returns the user selector JavaScript module
* @return array
*/
public function get_js_module() {
return self::$jsmodule;
}
/**
* Outputs a Javascript array containing the other groups non-members are in.
* Used on the add group members page.