mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +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();
|
this.render();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
updateTitle: function(/*string*/ title) {
|
||||||
|
this.$('.modal-title').text(title);
|
||||||
|
},
|
||||||
|
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
this.navEvents.trigger('click');
|
this.navEvents.trigger('click');
|
||||||
},
|
},
|
||||||
|
|
|
@ -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();
|
||||||
},
|
},
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue