Browse Source

Minor - Fixed display footer when you add a question in the test and occurs an error of required field - partial DT#5214

Cristian Fasanando 15 years ago
parent
commit
5f4054fa24
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/exercice/question_create.php

+ 2 - 2
main/exercice/question_create.php

@@ -87,8 +87,8 @@ $form->addElement('style_submit_button', 'SubmitCreateQuestion', get_lang('Creat
 
 // setting the rules
 // $form->addRule('question_type', '<div class="required">'.get_lang('ThisFieldIsRequired'), 'required');
-$form->addRule('exercice', '<div class="required">'.get_lang('ThisFieldIsRequired'), 'required');
-$form->addRule('exercice', '<div class="required">'.get_lang('YouHaveToSelectATest'), 'numeric');
+$form->addRule('exercice', '<span class="required">'.get_lang('ThisFieldIsRequired').'</span>', 'required');
+$form->addRule('exercice', '<span class="required">'.get_lang('YouHaveToSelectATest').'</span>', 'numeric');
 $form->registerRule('validquestiontype', 'callback', 'check_question_type');
 $form->addRule('question_type_hidden', get_lang('InvalidQuestionType'), 'validquestiontype');