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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user