fix points rounding in results view, clear results view on new scoring attempt.
This commit is contained in:
@@ -351,7 +351,7 @@ configureEditors: function () {
|
||||
},
|
||||
|
||||
isBrowserSupported: function () {
|
||||
// websockets is used for run, score and test
|
||||
// websockets are used for run, score and test
|
||||
return Modernizr.websockets;
|
||||
},
|
||||
|
||||
@@ -361,7 +361,7 @@ configureEditors: function () {
|
||||
panel.find('.panel-title .number').text(index + 1);
|
||||
panel.find('.row .col-sm-9').eq(0).find('.number').eq(0).text(result.passed);
|
||||
panel.find('.row .col-sm-9').eq(0).find('.number').eq(1).text(result.count);
|
||||
panel.find('.row .col-sm-9').eq(1).find('.number').eq(0).text((result.score * result.weight).toFixed(2));
|
||||
panel.find('.row .col-sm-9').eq(1).find('.number').eq(0).text(parseFloat((result.score * result.weight).toFixed(2)));
|
||||
panel.find('.row .col-sm-9').eq(1).find('.number').eq(1).text(result.weight);
|
||||
panel.find('.row .col-sm-9').eq(2).text(result.message);
|
||||
if (result.error_messages) panel.find('.row .col-sm-9').eq(3).text(result.error_messages.join(', '));
|
||||
|
Reference in New Issue
Block a user