Skip to content
Permalink
Browse files

HotPot module: differentiate between "guesses-correct" (JCloze) and "…

…guess-correct" (JCross, JMatch, JMix, JQuiz) in HotPot xml files and fix PreloadImages function for multiple images
  • Loading branch information...
gbateson
gbateson committed Aug 28, 2009
1 parent c14ee72 commit d23699775884aaedb90bfab80ca9b40712536544
Showing with 13 additions and 3 deletions.
  1. +13 −3 mod/hotpot/template/v6.php
@@ -227,7 +227,7 @@ function v6_expand_PreloadImageList() {
}
// convert to comma delimited string
$this->PreloadImageList = empty($list) ? '' : "'".implode(',', $list)."'";
$this->PreloadImageList = empty($list) ? '' : "'".implode("','", $list)."'";
}
return $this->PreloadImageList;
}
@@ -1064,10 +1064,20 @@ function add_keypad_chars(&$chars, $text) {
}
}
function v6_expand_Correct() {
return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.',guesses-correct');
if ($this->parent->quiztype=='jcloze') {
$tag = 'guesses-correct';
} else {
$tag = 'guess-correct';
}
return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.','.$tag);
}
function v6_expand_Incorrect() {
return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.',guesses-incorrect');
if ($this->parent->quiztype=='jcloze') {
$tag = 'guesses-incorrect';
} else {
$tag = 'guess-incorrect';
}
return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.','.$tag);
}
function v6_expand_GiveHint() {
return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.',next-correct-letter');

0 comments on commit d236997

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.