initial support for separation of content from attack in UI

This commit is contained in:
Jason White
2016-06-28 16:20:40 +02:00
parent 63398aaf6d
commit 0aa94a71e5
4 changed files with 29 additions and 12 deletions

View File

@ -29,8 +29,8 @@ function($,_,Backbone) {
if (this.hasSolution) {
this.$el.find('#show-solution-button').unbind().on('click',_.bind(this.showSolution,this)).show();
}
if (this.hasPlan) {
this.$el.find('#show-plan-button').unbind().on('click',_.bind(this.showPlan,this)).show();
if (true) { //FIXME: change to this.hasAttack
this.$el.find('#show-attack-button').unbind().on('click',_.bind(this.showAttack,this)).show();
}
if (this.hasHints) {
this.$el.find('#show-hints-button').unbind().on('click',_.bind(this.showHints,this)).show();
@ -48,8 +48,8 @@ function($,_,Backbone) {
this.trigger('solution:show','solution');
},
showPlan: function() {
this.trigger('plan:show','plan');
showAttack: function() {
this.trigger('attack:show',{show:true});
},
showHints: function() {