Resolves #331 -- update title of level bar when locale changes

This commit is contained in:
Peter Cottle 2015-11-15 12:05:42 -08:00
parent e0e455a8bc
commit 7d719f4cff
3 changed files with 10 additions and 1 deletions

View file

@ -315,6 +315,10 @@ var ModalTerminal = ContainedBase.extend({
this.render(); this.render();
}, },
updateTitle: function(/*string*/ title) {
this.$('.modal-title').text(title);
},
onClick: function() { onClick: function() {
this.navEvents.trigger('click'); this.navEvents.trigger('click');
}, },

View file

@ -86,6 +86,9 @@ var LevelDropdownView = ContainedBase.extend({
}, },
render: function() { render: function() {
this.container.updateTitle(
intl.str('select-a-level')
);
LevelDropdownView.__super__.render.apply(this, arguments); LevelDropdownView.__super__.render.apply(this, arguments);
this.buildSequences(); this.buildSequences();
}, },

View file

@ -185,7 +185,9 @@
</div> </div>
<div> <div>
<i class="icon-cog"></i> <i class="icon-cog"></i>
<%= title %> <span class="modal-title">
<%= title %>
</span>
</div> </div>
</div> </div>