Skip to content
Browse files

Fix category not being shown bug

  • Loading branch information...
1 parent ab2cb11 commit ded52c05186d5cff10be019a17d912e2eecab9ca @alexanderteinum alexanderteinum committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 frontend/views/result.coffee
  2. +1 −1 frontend/views/result.js
View
2 frontend/views/result.coffee
@@ -71,7 +71,7 @@ define ['jquery', 'underscore', 'backbone'], ($, _, Backbone) ->
else
result.set '_answer', @options.locale.translate('test_answer_' + result.get('answer'))
- result._category = @options.locale.translate('result_category_' + result.get('category'))
+ result.set '_category', @options.locale.translate('result_category_' + result.get('category'))
result.toJSON()
shouldHideAutomatedCheckerResults: () ->
document.getElementById('hideAutomatedCheckerResults') == null or $('#hideAutomatedCheckerResults').is(':checked')
View
2 frontend/views/result.js
@@ -87,7 +87,7 @@
result.set('_answer', this.options.locale.translate('test_answer_' + result.get('answer')));
}
}
- result._category = this.options.locale.translate('result_category_' + result.get('category'));
+ result.set('_category', this.options.locale.translate('result_category_' + result.get('category')));
return result.toJSON();
},
shouldHideAutomatedCheckerResults: function() {

0 comments on commit ded52c0

Please sign in to comment.
Something went wrong with that request. Please try again.