MDL-41648 gradingforms: Remove unnecessary attr

This commit is contained in:
David Monllao 2016-03-08 15:31:17 +08:00
parent f084c4b231
commit d94df7afa8
2 changed files with 3 additions and 3 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), '', array('role' => 'alert'));
$html .= html_writer::div($renderer->notification($this->validationerrors));
}
$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), '', array('role' => 'alert'));
$html .= html_writer::div($renderer->notification($this->validationerrors));
}
$html .= $renderer->display_rubric($data['criteria'], $data['options'], $mode, $this->getName());
return $html;
@ -380,4 +380,4 @@ class MoodleQuickForm_rubriceditor extends HTML_QuickForm_input {
$value = $this->prepare_data($this->_findValue($submitValues));
return $this->_prepareValue($value, $assoc);
}
}
}