소스 검색

Fixing exercise description when it has HTML content

Julio Montoya 11 년 전
부모
커밋
5c33814955
1개의 변경된 파일1개의 추가작업 그리고 10개의 파일을 삭제
  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') {