Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plugins bot
moodle-plugins-snapshots
Commits
22f1426b
Commit
22f1426b
authored
Jan 18, 2017
by
Andrew Nicols
Browse files
Merge branch 'MDL-57604-master' of
git://github.com/danpoltawski/moodle
parents
93c15c77
fef57181
Changes
2
Hide whitespace changes
Inline
Side-by-side
mod/assign/amd/build/participant_selector.min.js
View file @
22f1426b
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
mod/assign/amd/src/participant_selector.js
View file @
22f1426b
...
...
@@ -95,8 +95,14 @@ define(['core/ajax', 'jquery', 'core/templates'], function(ajax, $, templates) {
// Do the dance for $.when()
return
$
.
when
.
apply
(
$
,
promises
);
}).
then
(
function
()
{
// Undo the $.when() dance from arguments object into an array..
var
users
=
Array
.
prototype
.
slice
.
call
(
arguments
);
var
users
=
[];
// Determine if we've been passed any arguments..
if
(
arguments
[
0
])
{
// Undo the $.when() dance from arguments object into an array..
users
=
Array
.
prototype
.
slice
.
call
(
arguments
);
}
success
(
users
);
}).
catch
(
failure
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment