Skip to content

Commit

Permalink
MDL-57604 mod_assign: Adding some missing stuff in 32_STABLE
Browse files Browse the repository at this point in the history
In order to keep 31, 32 and master the same.
  • Loading branch information
danpoltawski authored and stronk7 committed Jan 18, 2017
1 parent ee7b977 commit 6dc7039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mod/assign/amd/build/participant_selector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions mod/assign/amd/src/participant_selector.js
Expand Up @@ -35,12 +35,7 @@ define(['core/ajax', 'jquery', 'core/templates'], function(ajax, $, templates) {
* @return {Array}
*/
processResults: function(selector, data) {
var results = [];
var i = 0;
for (i = 0; i < data.length; i++) {
results[i] = {value: data[i].id, label: data[i].label};
}
return results;
return data;
},

/**
Expand Down Expand Up @@ -93,7 +88,7 @@ define(['core/ajax', 'jquery', 'core/templates'], function(ajax, $, templates) {
});
ctx.identity = identity.join(', ');
promises.push(templates.render('mod_assign/list_participant_user_summary', ctx).then(function(html) {
return {id: user.id, label: html};
return {value: user.id, label: html};
}));
}
});
Expand Down

0 comments on commit 6dc7039

Please sign in to comment.