src/js/widgets/polemicWidget.js
branchpopcorn-port
changeset 490 2a7fca4f0cc4
parent 485 67cf75eefeb6
child 528 a5894f09825a
equal deleted inserted replaced
489:0b84128f609b 490:2a7fca4f0cc4
   302                   
   302                   
   303                   IriSP.jQuery(e.node).mouseenter(function(element) { return function (event) {                        
   303                   IriSP.jQuery(e.node).mouseenter(function(element) { return function (event) {                        
   304                         // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery.                        
   304                         // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery.                        
   305                         self.TooltipWidget.show.call(self.TooltipWidget, element.title, element.attr("fill"), event.pageX - 106, event.pageY - 160);
   305                         self.TooltipWidget.show.call(self.TooltipWidget, element.title, element.attr("fill"), event.pageX - 106, event.pageY - 160);
   306                         element.displayed = true;
   306                         element.displayed = true;
   307                   }}(e)).mousedown(function () {
   307                   }}(e)).mousedown(function(element) { return function () {                    
   308                     self._Popcorn.currentTime(this.time/1000);
   308                     self._Popcorn.currentTime(element.time/1000);
   309                     self._Popcorn.trigger("IriSP.PolemicTweet.click", this.id); 
   309                     self._Popcorn.trigger("IriSP.PolemicTweet.click", element.id); 
   310                   });                  
   310                     }
       
   311                   }(e));                  
   311                   
   312                   
   312                   IriSP.jQuery(e.node).attr('id', 't' + k + '');
   313                   IriSP.jQuery(e.node).attr('id', 't' + k + '');
   313                   IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
   314                   IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
   314                   IriSP.jQuery(e.node).attr('begin',  frames[i].mytweetsID[k].timeframe);                  
   315                   IriSP.jQuery(e.node).attr('begin',  frames[i].mytweetsID[k].timeframe);                  
   315                 }
   316                 }