#133 hiding hint on change of lesson/loesson load
This commit is contained in:
parent
e530be6e3e
commit
d4af09c72a
@ -16,7 +16,7 @@ function($,
|
||||
this.curHint=0;
|
||||
this.collection = new HintCollection();
|
||||
this.listenTo(this.collection,'loaded',this.onModelLoaded);
|
||||
|
||||
this.hideHints();
|
||||
},
|
||||
|
||||
render:function() {
|
||||
@ -37,6 +37,12 @@ function($,
|
||||
this.trigger('hints:loaded',{'helpElement':'hints','value':true})
|
||||
},
|
||||
|
||||
hideHints: function() {
|
||||
if (this.$el.is(':visible')) {
|
||||
this.$el.hide(350);
|
||||
}
|
||||
},
|
||||
|
||||
showNextHint: function() {
|
||||
this.curHint = (this.curHint < this.collection.length -1) ? this.curHint+1 : this.curHint;
|
||||
this.hideShowPrevNextButtons();
|
||||
|
Loading…
x
Reference in New Issue
Block a user