MDL-41648 grade: Remove 'error' parameter in grading notification divs

This commit is contained in:
dg711 2016-02-27 15:49:10 +05:30
parent 7adc7ef14f
commit df8674d26e
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class moodlequickform_guideeditor extends HTML_QuickForm_input {
$html .= $renderer->display_regrade_confirmation($this->getName(), $this->regradeconfirmation, $data['regrade']);
}
if ($this->validationerrors) {
$html .= html_writer::div($renderer->notification($this->validationerrors, 'error'), '', array('role' => 'alert'));
$html .= html_writer::div($renderer->notification($this->validationerrors), '', array('role' => 'alert'));
}
$html .= $renderer->display_guide($data['criteria'], $data['comments'], $data['options'], $mode, $this->getName());
return $html;

View File

@ -141,7 +141,7 @@ class MoodleQuickForm_rubriceditor extends HTML_QuickForm_input {
$html .= $renderer->display_regrade_confirmation($this->getName(), $this->regradeconfirmation, $data['regrade']);
}
if ($this->validationerrors) {
$html .= html_writer::div($renderer->notification($this->validationerrors, 'error'), '', array('role' => 'alert'));
$html .= html_writer::div($renderer->notification($this->validationerrors), '', array('role' => 'alert'));
}
$html .= $renderer->display_rubric($data['criteria'], $data['options'], $mode, $this->getName());
return $html;