Issue #70 refresue #70 refresh levles when reset map

This commit is contained in:
Peter Cottle 2013-03-06 19:59:47 -08:00
parent 92bd248c18
commit 53d613ebec
5 changed files with 27 additions and 18 deletions

View file

@ -19841,17 +19841,20 @@ var LevelDropdownView = ContainedBase.extend({
}); });
this.render(); this.render();
this.buildSequences();
Main.getEvents().on('localeChanged', function() { Main.getEvents().on('resetMapSolved', this.render, this);
this.render(); Main.getEvents().on('localeChanged', this.render, this);
this.buildSequences();
}, this);
if (!options.wait) { if (!options.wait) {
this.show(); this.show();
} }
}, },
render: function() {
LevelDropdownView.__super__.render.apply(this, arguments);
this.buildSequences();
},
positive: function() { positive: function() {
if (!this.selectedID) { if (!this.selectedID) {
return; return;
@ -28588,17 +28591,20 @@ var LevelDropdownView = ContainedBase.extend({
}); });
this.render(); this.render();
this.buildSequences();
Main.getEvents().on('localeChanged', function() { Main.getEvents().on('resetMapSolved', this.render, this);
this.render(); Main.getEvents().on('localeChanged', this.render, this);
this.buildSequences();
}, this);
if (!options.wait) { if (!options.wait) {
this.show(); this.show();
} }
}, },
render: function() {
LevelDropdownView.__super__.render.apply(this, arguments);
this.buildSequences();
},
positive: function() { positive: function() {
if (!this.selectedID) { if (!this.selectedID) {
return; return;

File diff suppressed because one or more lines are too long

2
build/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -412,7 +412,7 @@
For a much easier time perusing the source, see the individual files at: For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching https://github.com/pcottle/learnGitBranching
--> -->
<script src="build/bundle.min.3da7a96b.js"></script> <script src="build/bundle.min.47d7787a.js"></script>
<!-- The advantage of github pages: super-easy, simple, slick static hostic. <!-- The advantage of github pages: super-easy, simple, slick static hostic.
The downside? No raw logs to parse for analytics, so I have to include The downside? No raw logs to parse for analytics, so I have to include

View file

@ -51,17 +51,20 @@ var LevelDropdownView = ContainedBase.extend({
}); });
this.render(); this.render();
this.buildSequences();
Main.getEvents().on('localeChanged', function() { Main.getEvents().on('resetMapSolved', this.render, this);
this.render(); Main.getEvents().on('localeChanged', this.render, this);
this.buildSequences();
}, this);
if (!options.wait) { if (!options.wait) {
this.show(); this.show();
} }
}, },
render: function() {
LevelDropdownView.__super__.render.apply(this, arguments);
this.buildSequences();
},
positive: function() { positive: function() {
if (!this.selectedID) { if (!this.selectedID) {
return; return;