Browse Source

Fix exercise multi-hotspot - refs BT#11764

Angel Fernando Quiroz Campos 8 years ago
parent
commit
e65e49a769
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/exercise/exercise_show.php

+ 2 - 2
main/exercise/exercise_show.php

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