Преглед на файлове

Fix message when answering a question of type hotspot - refs #7705

Angel Fernando Quiroz Campos преди 9 години
родител
ревизия
fdc4f180b2
променени са 3 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 1 1
      main/exercice/hotspot_actionscript.as.php
  2. 1 1
      main/exercice/hotspot_answers.as.php
  3. 2 1
      main/plugin/hotspot2/js/hotspot_user.js

+ 1 - 1
main/exercice/hotspot_actionscript.as.php

@@ -48,7 +48,7 @@ $data['lang'] = [
     'HotspotShowUserPoints' => get_lang('HotspotShowUserPoints'),
     'ShowHotspots' => get_lang('ShowHotspots'),
     'Triesleft' => get_lang('Triesleft'),
-    'ExerciseFinished' => get_lang('ExerciseFinished'),
+    'HotspotExerciseFinished' => get_lang('HotspotExerciseFinished'),
     'NextAnswer' => get_lang('NextAnswer'),
     'Delineation' => get_lang('Delineation'),
     'CloseDelineation' => get_lang('CloseDelineation'),

+ 1 - 1
main/exercice/hotspot_answers.as.php

@@ -48,7 +48,7 @@ $data['lang'] = [
     'HotspotShowUserPoints' => get_lang('HotspotShowUserPoints'),
     'ShowHotspots' => get_lang('ShowHotspots'),
     'Triesleft' => get_lang('Triesleft'),
-    'ExerciseFinished' => get_lang('ExerciseFinished'),
+    'HotspotExerciseFinished' => get_lang('HotspotExerciseFinished'),
     'NextAnswer' => get_lang('NextAnswer'),
     'Delineation' => get_lang('Delineation'),
     'CloseDelineation' => get_lang('CloseDelineation'),

+ 2 - 1
main/plugin/hotspot2/js/hotspot_user.js

@@ -126,7 +126,8 @@ var HotSpotUser = (function () {
             self.addAnswer(answer);
 
             if (answers.length === hotSpots.length) {
-                self.messagesEl.textContent = lang.ExeFinished;
+                console.log(lang);
+                self.messagesEl.textContent = lang.HotspotExerciseFinished;
 
                 return;
             }