fixes silly error in next level dialog Issue #56

This commit is contained in:
Peter Cottle 2013-02-24 22:03:19 -08:00
parent 956d559697
commit 3523d28416
7 changed files with 14 additions and 6 deletions

View file

@ -426,7 +426,9 @@ var ConfirmCancelTerminal = Backbone.View.extend({
var NextLevelConfirm = ConfirmCancelTerminal.extend({
initialize: function(options) {
options = options || {};
var nextLevelName = (options.nextLevel) ? options.nextLevel.name : '';
var nextLevelName = (options.nextLevel) ?
intl.getName(options.nextLevel) :
'';
var pluralNumCommands = (options.numCommands == 1) ? '' : 's';
var pluralBest = (options.best == 1) ? '' : 's';