mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 09:20:03 +02:00
Resolves #331 -- update title of level bar when locale changes
This commit is contained in:
parent
e0e455a8bc
commit
7d719f4cff
3 changed files with 10 additions and 1 deletions
|
@ -315,6 +315,10 @@ var ModalTerminal = ContainedBase.extend({
|
|||
this.render();
|
||||
},
|
||||
|
||||
updateTitle: function(/*string*/ title) {
|
||||
this.$('.modal-title').text(title);
|
||||
},
|
||||
|
||||
onClick: function() {
|
||||
this.navEvents.trigger('click');
|
||||
},
|
||||
|
|
|
@ -86,6 +86,9 @@ var LevelDropdownView = ContainedBase.extend({
|
|||
},
|
||||
|
||||
render: function() {
|
||||
this.container.updateTitle(
|
||||
intl.str('select-a-level')
|
||||
);
|
||||
LevelDropdownView.__super__.render.apply(this, arguments);
|
||||
this.buildSequences();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue