Browse Source

Fixing exercise description when it has HTML content

Julio Montoya 11 years ago
parent
commit
5c33814955
1 changed files with 1 additions and 10 deletions
  1. 1 10
      main/exercice/exercise_submit.php

+ 1 - 10
main/exercice/exercise_submit.php

@@ -899,16 +899,7 @@ if ($time_control) {
 }
 
 if (!empty($objExercise->description)) {
-    echo "<script>
-        $(function() {
-            $('#description_content').accordion({
-                changestart: function(event, ui) {
-                    $('#collapse1').html('".addslashes($objExercise->description)."');
-                }
-            });
-         });
-        </script>";
-    echo Display::generate_accordion(array(array('title' => get_lang('ExerciseDescriptionLabel'), 'content' => null)), 'jquery', 'description_content');
+    echo Display::generate_accordion(array(array('title' => get_lang('ExerciseDescriptionLabel'), 'content' => $objExercise->description)), 'jquery', 'description_content');
 }
 
 if ($origin != 'learnpath') {