Browse Source

Minor - changed div position

Isaac Flores 15 years ago
parent
commit
c50f12b3ed
1 changed files with 5 additions and 4 deletions
  1. 5 4
      main/exercice/exercice_submit.php

+ 5 - 4
main/exercice/exercice_submit.php

@@ -68,12 +68,12 @@ $language_file = 'exercice';
 
 require_once '../inc/global.inc.php';
 $this_section = SECTION_COURSES;
-  $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js" type="text/javascript" language="javascript"></script>'; //jQuery
+$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js" type="text/javascript" language="javascript"></script>'; //jQuery
+$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.corners.min.js" type="text/javascript"></script>';
 if (api_get_setting('show_glossary_in_extra_tools') == 'true') {
   $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/glossary.js" type="text/javascript" language="javascript"></script>'; //Glossary
   $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js" type="text/javascript" language="javascript"></script>'; 
- }
- $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.corners.min.js" type="text/javascript"></script>';
+}
 /* ------------	ACCESS RIGHTS ------------ */
 // notice for unauthorized people.
 api_protect_course_script(true);
@@ -907,7 +907,7 @@ if (api_is_course_admin() && $origin != 'learnpath') {
 	echo '</div>';
 }
 
-echo '<div id="highlight-plugin" class="glossary-content">';
+
 $exerciseTitle = api_parse_tex($exerciseTitle);
 echo "<h3>" . $exerciseTitle . "</h3>";
 
@@ -1027,6 +1027,7 @@ if (!empty ($error)) {
 			<tr>
 		 		<td>
 		  			<table width='100%' cellpadding='3' cellspacing='0' border='0'>";
+  echo '<div id="highlight-plugin" class="glossary-content">';                   
 	echo $s;
 	$i = 1;
 	foreach ($questionList as $questionId) {