Fix exercise multi-hotspot - refs BT#11764

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 0db51d9c69
commit e65e49a769
  1. 4
      main/exercise/exercise_show.php

@ -444,13 +444,13 @@ foreach ($questionList as $questionId) {
echo " echo "
<tr> <tr>
<td colspan=\"2\"> <td colspan=\"2\">
<div id=\"hotspot-solution\"></div> <div id=\"hotspot-solution-$questionId-$id\"></div>
<script> <script>
$(document).on('ready', function () { $(document).on('ready', function () {
new HotspotQuestion({ new HotspotQuestion({
questionId: $questionId, questionId: $questionId,
exerciseId: $id, exerciseId: $id,
selector: '#hotspot-solution', selector: '#hotspot-solution-$questionId-$id',
for: 'solution', for: 'solution',
relPath: '$relPath' relPath: '$relPath'
}); });

Loading…
Cancel
Save