no output

This commit is contained in:
Peter Cottle 2013-01-11 13:56:45 -08:00
parent 73cead0ae8
commit 13e7385bad
4 changed files with 42 additions and 21 deletions

View file

@ -190,7 +190,12 @@ var LevelDropdownView = ContainedBase.extend({
this.hide();
},
show: function(deferred) {
testOption: function(str) {
return this.currentCommand && new RegExp('--' + str).test(this.currentCommand.get('rawStr'));
},
show: function(deferred, command) {
this.currentCommand = command;
// doing the update on show will allow us to fade which will be nice
this.updateSolvedStatus();
@ -211,10 +216,12 @@ var LevelDropdownView = ContainedBase.extend({
},
loadLevelID: function(id) {
Main.getEventBaton().trigger(
'commandSubmitted',
'level ' + id
);
if (!this.testOption('noOutput')) {
Main.getEventBaton().trigger(
'commandSubmitted',
'level ' + id
);
}
this.hide();
},