Browse Source

fix panel collapse description CT#8123

Alex Aragon 9 years ago
parent
commit
f951121e32
1 changed files with 5 additions and 12 deletions
  1. 5 12
      main/exercice/exercise_submit.php

+ 5 - 12
main/exercice/exercise_submit.php

@@ -1096,6 +1096,11 @@ if (!empty($error)) {
         }
 
         // Showing the question
+        
+        
+        if (!empty($objExercise->description)){
+            echo Display::panel($objExercise->description, get_lang('ExerciseDescriptionLabel'));
+        }
 
         echo '<div id="question_div_'.$questionId.'" class="main-question '.$remind_highlight.'" >';
 
@@ -1158,18 +1163,6 @@ if (!empty($error)) {
     }
     echo '</form>';
 
-    if (!empty($objExercise->description)){
-        echo Display::panelCollapse(
-            get_lang('ExerciseDescriptionLabel'),
-            $objExercise->description,
-            'exercise-description',
-            [],
-            'description',
-            'exercise-collapse',
-            false,
-            true
-        );
-    }
 }
 
 if ($origin != 'learnpath') {