File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
exe/webui/scripts/idevices
clasifica-activity/edition
descubre-activity/edition Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ var $exeDevice = {
156
156
<label for="clasificaEShowMinimize"><input type="checkbox" id="clasificaEShowMinimize">' + _ ( "Show minimized." ) + '</label>\
157
157
</p>\
158
158
<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" />\
160
160
</p>\
161
161
<p>\
162
162
<label for="clasificaEHasFeedBack"><input type="checkbox" id="clasificaEHasFeedBack"> ' + _ ( "Feedback" ) + '. </label> \
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ var $exeDevice = {
153
153
<label for="descubreECustomMessages"><input type="checkbox" id="descubreECustomMessages">' + _ ( "Custom messages" ) + '.</label>\
154
154
</p>\
155
155
<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" />\
157
157
</p>\
158
158
<p>\
159
159
<label for="descubreEAttempts">' + _ ( "Number of attemps" ) + ':</label><input type="number" name="descubreEAttempts" id="descubreEAttempts" value="0" min="0" max="100" step="1" />\
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ var $eXeMapa = {
40
40
initialScore : '' ,
41
41
hasLATEX : false ,
42
42
hasAreas : false ,
43
+ mScorm : null ,
43
44
init : function ( ) {
44
45
this . activities = $ ( '.mapa-IDevice' ) ;
45
46
if ( this . activities . length == 0 ) return ;
@@ -967,7 +968,7 @@ var $eXeMapa = {
967
968
}
968
969
if ( mOptions . evaluation == 4 && ! mOptions . questionaireStarted ) return ;
969
970
if ( mOptions . gameStarted || mOptions . gameOver ) {
970
- if ( typeof $eXeMapa . mScorm != 'undefined' ) {
971
+ if ( $eXeMapa . mScorm && typeof $eXeMapa . mScorm != 'undefined' ) {
971
972
if ( ! auto ) {
972
973
$ ( '#mapaSendScore-' + instance ) . show ( ) ;
973
974
if ( ! mOptions . repeatActivity && $eXeMapa . previousScore !== '' ) {
@@ -1598,7 +1599,7 @@ var $eXeMapa = {
1598
1599
return true ;
1599
1600
} ) ;
1600
1601
$ ( window ) . on ( 'unload' , function ( ) {
1601
- if ( typeof ( $eXeMapa . mScorm ) != "undefined" ) {
1602
+ if ( $eXeMapa . mScorm && typeof ( $eXeMapa . mScorm ) != "undefined" ) {
1602
1603
$eXeMapa . endScorm ( ) ;
1603
1604
}
1604
1605
} ) ;
@@ -2484,7 +2485,7 @@ var $eXeMapa = {
2484
2485
} else {
2485
2486
mOptions . errors ++ ;
2486
2487
}
2487
- mOptions . score = ( mOptions . score + obtainedPoints > 0 ) ? mOptions . score + obtainedPoints : 0 ;
2488
+ mOptions . score = ( mOptions . score + obtainedPoints ) > 0 ? mOptions . score + obtainedPoints : 0 ;
2488
2489
sscore = mOptions . score ;
2489
2490
sscore = mOptions . score % 1 == 0 ? mOptions . score : mOptions . score . toFixed ( 2 ) ;
2490
2491
$ ( '#mapaPScore-' + instance ) . text ( sscore ) ;
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ var $exeDevice = {
135
135
<label for="ordenaECustomMessages"><input type="checkbox" id="ordenaECustomMessages">' + _ ( "Custom messages" ) + '.</label>\
136
136
</p>\
137
137
<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" />\
139
139
</p>\
140
140
<p>\
141
141
<label for="ordenaEShowSolution"><input type="checkbox" checked id="ordenaEShowSolution"> ' + _ ( "Show solutions" ) + '. </label> \
You can’t perform that action at this time.
0 commit comments