Skip to content

Commit

Permalink
Merge pull request #4 from adaptlearning/develop
Browse files Browse the repository at this point in the history
Updated to fix issue#1
  • Loading branch information
darylhedley committed Dec 11, 2013
2 parents b6c062f + 81eea08 commit e76256b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/adapt-contrib-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@ define(function(require) {
}),

events: {
'inview':'inview'
'inview':'inview',
'click a.media-show-transcript':'showTranscript'
},

postRender: function() {
console.log("rendering");
this.updateRatio();
this.setReadyStatus();
this.setCompletionStatus();
this.$('a.show-transcript').on('click', _.bind(this.showTranscript, this));
},

inview: function(event, visible) {
if (visible) this.model.set('_isComplete',true);
if (visible) this.setCompletionStatus();
this.$el.off('inview');
},

Expand Down

0 comments on commit e76256b

Please sign in to comment.