Browse Source

Formvalidator: Not neccesary to use the "static" element when adding a hint when using formvalidor, just use an array in the label argument

Julio Montoya 13 years ago
parent
commit
dda56df3cf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/gradebook/lib/fe/evalform.class.php

+ 2 - 2
main/gradebook/lib/fe/evalform.class.php

@@ -429,12 +429,12 @@ class EvalForm extends FormValidator
 					'maxlength' => '5'
 				));
 			} else {
-				$this->add_textfield('max', get_lang('QualificationNumeric'), false, array (
+				$this->add_textfield('max', array(get_lang('QualificationNumeric'), get_lang('CannotChangeTheMaxNote')), false, array (
 					'size' => '4',
 					'maxlength' => '5',
 					'disabled' => 'disabled'
 				));
-				$this->addElement('static','label','','<small>'.get_lang('CannotChangeTheMaxNote').'</small>');
+				//$this->addElement('static','label','','<small>'.get_lang('CannotChangeTheMaxNote').'</small>');
 			}
 		} else {
 			$this->add_textfield('max', get_lang('QualificationNumeric'), true, array (