MDL-37770 Assignment submission comments do not work without javascript.

This is mostly fixed by MDL-36832 which correctly sets the $PAGE->url.

This patch hides the submit and textareas from submission comments in the grading table when
javascript is disabled and quickgrading is enabled. This particular combination results in a form
nested in a form which does not work (and cannot be fixed in a reasonable amount of time).
This commit is contained in:
Damyon Wiese
2013-02-21 11:55:24 +08:00
parent c211409998
commit 0b352fd94e
2 changed files with 12 additions and 1 deletions
+10
View File
@@ -150,3 +150,13 @@ td.submissioneditable {
.hidefull {
display: none;
}
.quickgradingform form .commentscontainer input,
.quickgradingform form .commentscontainer textarea {
display: none;
}
.jsenabled .quickgradingform form .commentscontainer input,
.jsenabled .quickgradingform form .commentscontainer textarea {
display: inline;
}
+2 -1
View File
@@ -71,7 +71,8 @@ class assign_submission_comments extends assign_submission_plugin {
$comment = new comment($options);
$comment->set_view_permission(true);
return $comment->output(true);
$o = $this->assignment->get_renderer()->container($comment->output(true), 'commentscontainer');
return $o;
}
/**