From 12630500445ed6d3faf1fd01b742eeb2210c9743 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 19 Dec 2017 10:25:33 +0100 Subject: [PATCH] Fix typos, format code --- main/inc/lib/exercise.lib.php | 4 +--- main/template/default/layout/header.js.tpl | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/main/inc/lib/exercise.lib.php b/main/inc/lib/exercise.lib.php index c85523c640..f700c7dc35 100644 --- a/main/inc/lib/exercise.lib.php +++ b/main/inc/lib/exercise.lib.php @@ -59,7 +59,6 @@ class ExerciseLib $answerType = $objQuestionTmp->selectType(); $pictureName = $objQuestionTmp->getPictureFilename(); $s = ''; - if ($answerType != HOT_SPOT && $answerType != HOT_SPOT_DELINEATION && $answerType != ANNOTATION @@ -955,7 +954,6 @@ class ExerciseLib } $lines_count++; - if (($lines_count - 1) == $num_suggestions) { while (isset($select_items[$lines_count])) { $s .= Display::tag('b', $select_items[$lines_count]['letter']); @@ -980,7 +978,7 @@ class ExerciseLib $s .= << - +
$lines_count. $parsed_answer
diff --git a/main/template/default/layout/header.js.tpl b/main/template/default/layout/header.js.tpl index 199c13c388..39bc453313 100644 --- a/main/template/default/layout/header.js.tpl +++ b/main/template/default/layout/header.js.tpl @@ -72,10 +72,9 @@ }; {% endif %} - function doneResizing() { - var widhtWindow = $(window).width(); - if ((widhtWindow>=1024) && (widhtWindow>=768)) { + var widthWindow = $(window).width(); + if ((widthWindow>=1024) && (widthWindow>=768)) { $("#profileCollapse").addClass("in"); $("#courseCollapse").addClass("in"); $("#skillsCollapse").addClass("in");