Skip to content
Browse files

MDL-35587 fixed up whitespaces

  • Loading branch information...
1 parent 832e5f5 commit d022f63202781ad58593d8559448a8053ad909da @nebgor nebgor committed
Showing with 7 additions and 7 deletions.
  1. +5 −5 course/dndupload.js
  2. +2 −2 course/dnduploadlib.php
View
10 course/dndupload.js
@@ -728,13 +728,13 @@ M.course_dndupload = {
resel.icon.src = result.icon;
resel.a.href = result.link;
resel.namespan.innerHTML = result.name;
-
+
if (result.groupingname) {
resel.groupingspan.innerHTML = '(' + result.groupingname + ')';
} else {
resel.div.removeChild(resel.groupingspan);
}
-
+
resel.div.removeChild(resel.progressouter);
resel.li.id = result.elementid;
resel.div.innerHTML += result.commands;
@@ -915,13 +915,13 @@ M.course_dndupload = {
resel.icon.src = result.icon;
resel.a.href = result.link;
resel.namespan.innerHTML = result.name;
-
+
if (result.groupingname) {
resel.groupingspan.innerHTML = '(' + result.groupingname + ')';
} else {
resel.div.removeChild(resel.groupingspan);
- }
-
+ }
+
resel.div.removeChild(resel.progressouter);
resel.li.id = result.elementid;
resel.div.innerHTML += result.commands;
View
4 course/dnduploadlib.php
@@ -670,9 +670,9 @@ protected function send_response($mod) {
// if using groupings, then display grouping name
if (!empty($mod->groupingid) && has_capability('moodle/course:managegroups', $this->context)) {
$groupings = groups_get_all_groupings($this->course->id);
- $resp->groupingname = format_string($groupings[$mod->groupingid]->name);
+ $resp->groupingname = format_string($groupings[$mod->groupingid]->name);
}
-
+
echo $OUTPUT->header();
echo json_encode($resp);
die();

0 comments on commit d022f63

Please sign in to comment.
Something went wrong with that request. Please try again.