Skip to content

Commit

Permalink
MDL-10858 - Edit field sizes for overall feedback are silly. Merged f…
Browse files Browse the repository at this point in the history
…rom MOODLE_18_STABLE.
  • Loading branch information
tjhunt committed Aug 15, 2007
1 parent fe3a91e commit a462602
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/quiz/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ function definition() {
$mform->addElement('static', 'gradeboundarystatic1', get_string('gradeboundary', 'quiz'), '100%');

$repeatarray=array();
$repeatarray[] = &MoodleQuickForm::createElement('text', 'feedbacktext', get_string('feedback', 'quiz'));
$repeatarray[] = &MoodleQuickForm::createElement('text', 'feedbackboundaries', get_string('gradeboundary', 'quiz'));
$repeatarray[] = &MoodleQuickForm::createElement('text', 'feedbacktext', get_string('feedback', 'quiz'), array('size' => 50));
$repeatarray[] = &MoodleQuickForm::createElement('text', 'feedbackboundaries', get_string('gradeboundary', 'quiz'), array('size' => 10));

if (!empty($this->_instance)) {
$this->_feedbacks = get_records('quiz_feedback', 'quizid', $this->_instance, 'mingrade DESC');
Expand All @@ -236,7 +236,7 @@ function definition() {
array(), 'boundary_repeats', 'boundary_add_fields', 3);

//put some extra elements in before the button
$insertEl = &MoodleQuickForm::createElement('text', "feedbacktext[$nextel]", get_string('feedback', 'quiz'));
$insertEl = &MoodleQuickForm::createElement('text', "feedbacktext[$nextel]", get_string('feedback', 'quiz'), array('size' => 50));
$mform->insertElementBefore($insertEl, 'boundary_add_fields');

$insertEl = &MoodleQuickForm::createElement('static', 'gradeboundarystatic2', get_string('gradeboundary', 'quiz'), '0%');
Expand Down

0 comments on commit a462602

Please sign in to comment.