src/js/widgets/polemicWidget.js
branchpopcorn-port
changeset 485 67cf75eefeb6
parent 478 1422ba0fc333
child 490 2a7fca4f0cc4
equal deleted inserted replaced
484:479a74f9ddf8 485:67cf75eefeb6
   300                   });
   300                   });
   301                   */
   301                   */
   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.clientX - 106, event.clientY - 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 () {
   308                     self._Popcorn.currentTime(this.time/1000);
   308                     self._Popcorn.currentTime(this.time/1000);
   309                     self._Popcorn.trigger("IriSP.PolemicTweet.click", this.id); 
   309                     self._Popcorn.trigger("IriSP.PolemicTweet.click", this.id); 
   310                   });                  
   310                   });