From: vyshane Date: Mon, 22 Jan 2007 06:57:40 +0000 (+0000) Subject: Fixed MDL-8183. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=298481260e4d5cb7ff4ccd21b33cc2976c277f14;p=moodle.git Fixed MDL-8183. --- diff --git a/group/index.php b/group/index.php index 336740dc99..7c1c2d1ec7 100644 --- a/group/index.php +++ b/group/index.php @@ -143,9 +143,9 @@ if ($success) {

- $name\n"; + echo "\n"; $count++; } } diff --git a/group/lib/clientlib.js b/group/lib/clientlib.js index 66689840b0..8e20f0bc1b 100644 --- a/group/lib/clientlib.js +++ b/group/lib/clientlib.js @@ -27,32 +27,33 @@ function UpdatableGroupsCombo(wwwRoot, courseId) { } } - if (groupsComboEl) { - // Clear the groups combo box. - while (groupsComboEl.firstChild) { - groupsComboEl.removeChild(groupsComboEl.firstChild); + if (groupsComboEl && o.responseText) { + //var groups = eval("("+o.responseText+")"); + var groups = eval(o.responseText); + + // Populate the groups combo box. + for (var i=0; i