Improvements in performance in the quiz tool

skala
iflores 16 years ago
parent 28c71141f9
commit cadfcfc6fb
  1. 7
      main/exercice/exercice_submit.php
  2. 7
      main/exercice/exercise.lib.php

@ -78,6 +78,13 @@ if (api_get_setting('show_glossary_in_extra_tools') == 'true') {
//This library is necessary for the time control feature
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.epiclock.min.js" type="text/javascript" language="javascript"></script>'; //jQuery
if (!ereg("MSIE",$_SERVER["HTTP_USER_AGENT"])) {
$htmlHeadXtra[] = "<script type='text/javascript' language='javascript'>
$(document).ready( function(){
$('.rounded').corners();
$('.exercise_options').corners();
});</script>";
}
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);

@ -80,7 +80,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false,$current_it
echo $questionName.'</div>';
$s='';
$s.="<table class='exercise_questions' style='margin:5px;padding:5px;'>
$s.="<table class='exercise_questions' style='margin:4px;padding:2px;'>
<tr><td valign='top' colspan='2'>";
$questionDescription=api_parse_tex($questionDescription);
$s.=$questionDescription;
@ -97,12 +97,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false,$current_it
}
$s.= '</table>';
if (!ereg("MSIE",$_SERVER["HTTP_USER_AGENT"])) {
$s.="<script>$(document).ready( function(){
$('.rounded').corners();
$('.exercise_options').corners();
});</script>";
$s.="<div class=\"rounded exercise_questions\" style=\"width: 720px; padding: 3px; background-color:#ccc;\">";
} else {
$option_ie="margin-left:10px";
}

Loading…
Cancel
Save