src/widgets/Polemic.js
branchnew-model
changeset 881 f11b234497f7
parent 880 4c7b33bf2795
child 882 61c384dda19e
equal deleted inserted replaced
880:4c7b33bf2795 881:f11b234497f7
   183         })
   183         })
   184         .mouseout(function() {
   184         .mouseout(function() {
   185             _this.tooltip.hide();
   185             _this.tooltip.hide();
   186         })
   186         })
   187         .click(function() {
   187         .click(function() {
   188             _this.player.popcorn.trigger("IriSP.Tweet.show", IriSP.jQuery(this).attr("annotation-id"));
   188             var _id = IriSP.jQuery(this).attr("annotation-id");
       
   189             _this.player.popcorn.trigger("IriSP.Mediafragment.setHashToAnnotation", _id);
       
   190             _this.player.popcorn.trigger("IriSP.Tweet.show", _id);
   189         });
   191         });
   190     
   192     
   191     this.$zone.click(function(_e) {
   193     this.$zone.click(function(_e) {
   192         var _x = _e.pageX - _this.$zone.offset().left;
   194         var _x = _e.pageX - _this.$zone.offset().left;
   193         _this.player.popcorn.currentTime(_this.source.getDuration().getSeconds() * _x / _this.width);
   195         _this.player.popcorn.currentTime(_this.source.getDuration().getSeconds() * _x / _this.width);