Objective button Resolves #168

This commit is contained in:
Peter Cottle 2014-05-07 18:34:15 -07:00
parent e0516e3f5c
commit 5d05103afb
4 changed files with 32 additions and 5 deletions

View file

@ -567,11 +567,15 @@ var LevelToolbar = BaseView.extend({
this.render();
this.$goalButton = this.$el.find('#show-goal');
this.$objectiveButton = this.$el.find('#show-objective');
var parent = this.parent;
this.$goalButton.on('click', function () {
parent.trigger('toggleGoal');
});
this.$objectiveButton.on('click', function() {
parent.trigger('toggleObjective');
});
if (!options.wait) {
process.nextTick(_.bind(this.show, this));