Skip to content

Commit 6772b57

Browse files
committed
IDevices Clasifica, Descubre y Relaciona: Sustituicón de cadenas
1 parent 67fff02 commit 6772b57

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

exe/webui/scripts/idevices/clasifica-activity/edition/clasifica-activity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ var $exeDevice = {
156156
<label for="clasificaEShowMinimize"><input type="checkbox" id="clasificaEShowMinimize">' + _("Show minimized.") + '</label>\
157157
</p>\
158158
<p>\
159-
<label for="clasificaETime">' + _("Time") + '(m):</label><input type="number" name="clasificaETime" id="clasificaETime" value="0" min="0" max="120" step="1" />\
159+
<label for="clasificaETime">' + _("Time (minutes)") + ':</label><input type="number" name="clasificaETime" id="clasificaETime" value="0" min="0" max="120" step="1" />\
160160
</p>\
161161
<p>\
162162
<label for="clasificaEHasFeedBack"><input type="checkbox" id="clasificaEHasFeedBack"> ' + _("Feedback") + '. </label> \

exe/webui/scripts/idevices/descubre-activity/edition/descubre-activity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ var $exeDevice = {
153153
<label for="descubreECustomMessages"><input type="checkbox" id="descubreECustomMessages">' + _("Custom messages") + '.</label>\
154154
</p>\
155155
<p>\
156-
<label for="descubreETime">' + _("Time") + '(m):</label><input type="number" name="descubreETime" id="descubreETime" value="0" min="0" max="120" step="1" />\
156+
<label for="descubreETime">' + _("Time (minutes)") + ':</label><input type="number" name="descubreETime" id="descubreETime" value="0" min="0" max="120" step="1" />\
157157
</p>\
158158
<p>\
159159
<label for="descubreEAttempts">' + _("Number of attemps") + ':</label><input type="number" name="descubreEAttempts" id="descubreEAttempts" value="0" min="0" max="100" step="1" />\

exe/webui/scripts/idevices/mapa-activity/export/mapa-activity.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ var $eXeMapa = {
4040
initialScore: '',
4141
hasLATEX: false,
4242
hasAreas: false,
43+
mScorm: null,
4344
init: function () {
4445
this.activities = $('.mapa-IDevice');
4546
if (this.activities.length == 0) return;
@@ -967,7 +968,7 @@ var $eXeMapa = {
967968
}
968969
if (mOptions.evaluation == 4 && !mOptions.questionaireStarted) return;
969970
if (mOptions.gameStarted || mOptions.gameOver) {
970-
if (typeof $eXeMapa.mScorm != 'undefined') {
971+
if ( $eXeMapa.mScorm && typeof $eXeMapa.mScorm != 'undefined') {
971972
if (!auto) {
972973
$('#mapaSendScore-' + instance).show();
973974
if (!mOptions.repeatActivity && $eXeMapa.previousScore !== '') {
@@ -1598,7 +1599,7 @@ var $eXeMapa = {
15981599
return true;
15991600
});
16001601
$(window).on('unload', function () {
1601-
if (typeof ($eXeMapa.mScorm) != "undefined") {
1602+
if ($eXeMapa.mScorm && typeof ($eXeMapa.mScorm) != "undefined") {
16021603
$eXeMapa.endScorm();
16031604
}
16041605
});
@@ -2484,7 +2485,7 @@ var $eXeMapa = {
24842485
} else {
24852486
mOptions.errors++;
24862487
}
2487-
mOptions.score = (mOptions.score + obtainedPoints > 0) ? mOptions.score + obtainedPoints : 0;
2488+
mOptions.score = (mOptions.score + obtainedPoints) > 0 ? mOptions.score + obtainedPoints : 0;
24882489
sscore = mOptions.score;
24892490
sscore = mOptions.score % 1 == 0 ? mOptions.score : mOptions.score.toFixed(2);
24902491
$('#mapaPScore-' + instance).text(sscore);

exe/webui/scripts/idevices/ordena-activity/edition/ordena-activity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var $exeDevice = {
135135
<label for="ordenaECustomMessages"><input type="checkbox" id="ordenaECustomMessages">' + _("Custom messages") + '.</label>\
136136
</p>\
137137
<p>\
138-
<label for="ordenaETime">' + _("Time") + '(m):</label><input type="number" name="ordenaETime" id="ordenaETime" value="0" min="0" max="120" step="1" />\
138+
<label for="ordenaETime">' + _("Time (minutes)") + ':</label><input type="number" name="ordenaETime" id="ordenaETime" value="0" min="0" max="120" step="1" />\
139139
</p>\
140140
<p>\
141141
<label for="ordenaEShowSolution"><input type="checkbox" checked id="ordenaEShowSolution"> ' + _("Show solutions") + '. </label> \

0 commit comments

Comments
 (0)