Permalink
Browse files

MDL-35587 fixed up whitespaces

  • Loading branch information...
1 parent e72606c commit aedc642091430d8b6cf1f780507d9291d2b45257 @nebgor nebgor committed Oct 9, 2012
Showing with 7 additions and 7 deletions.
  1. +5 −5 course/dndupload.js
  2. +2 −2 course/dnduploadlib.php
View
@@ -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
@@ -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 aedc642

Please sign in to comment.