Merge branch 'MDL-36104_m23' of https://github.com/markn86/moodle into MOODLE_23_STABLE
This commit is contained in:
@@ -141,7 +141,9 @@ class assign_feedback_comments extends assign_feedback_plugin {
|
||||
}
|
||||
}
|
||||
|
||||
$mform->addElement('editor', 'assignfeedbackcomments_editor', '', null, null);
|
||||
$mform->addElement('editor', 'assignfeedbackcomments_editor', html_writer::tag('span', $this->get_name(),
|
||||
array('class' => 'accesshide')), null, null);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,8 +94,8 @@ class assign_feedback_file extends assign_feedback_plugin {
|
||||
'assignfeedback_file',
|
||||
ASSIGNFEEDBACK_FILE_FILEAREA,
|
||||
$gradeid);
|
||||
|
||||
$mform->addElement('filemanager', $elementname . '_filemanager', '', null, $fileoptions);
|
||||
$mform->addElement('filemanager', $elementname . '_filemanager', html_writer::tag('span', $this->get_name(),
|
||||
array('class' => 'accesshide')), null, $fileoptions);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -150,9 +150,10 @@ class assign_submission_file extends assign_submission_plugin {
|
||||
$fileoptions = $this->get_file_options();
|
||||
$submissionid = $submission ? $submission->id : 0;
|
||||
|
||||
|
||||
$data = file_prepare_standard_filemanager($data, 'files', $fileoptions, $this->assignment->get_context(), 'assignsubmission_file', ASSIGNSUBMISSION_FILE_FILEAREA, $submissionid);
|
||||
$mform->addElement('filemanager', 'files_filemanager', '', null, $fileoptions);
|
||||
$mform->addElement('filemanager', 'files_filemanager', html_writer::tag('span', $this->get_name(),
|
||||
array('class' => 'accesshide')), null, $fileoptions);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,9 +90,10 @@ class assign_submission_onlinetext extends assign_submission_plugin {
|
||||
|
||||
}
|
||||
|
||||
|
||||
$data = file_prepare_standard_editor($data, 'onlinetext', $editoroptions, $this->assignment->get_context(), 'assignsubmission_onlinetext', ASSIGNSUBMISSION_ONLINETEXT_FILEAREA, $submissionid);
|
||||
$mform->addElement('editor', 'onlinetext_editor', '', null, $editoroptions);
|
||||
$mform->addElement('editor', 'onlinetext_editor', html_writer::tag('span', $this->get_name(),
|
||||
array('class' => 'accesshide')), null, $editoroptions);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user