src/js/widgets/playerWidget.js
branchpopcorn-port
changeset 331 ef3447aa6920
parent 311 43a1b7d95317
child 338 3ff4499f79bb
--- a/src/js/widgets/playerWidget.js	Fri Nov 25 10:40:08 2011 +0100
+++ b/src/js/widgets/playerWidget.js	Fri Nov 25 11:10:19 2011 +0100
@@ -38,6 +38,9 @@
   var searchBox = Mustache.to_html(IriSP.search_template, {margin_left : searchButtonPos.left + "px"});
   this.selector.append(searchBox);
   
+  // trigger an IriSP.PlayerWidget.MouseOver to the widgets that are interested (i.e : sliderWidget)
+  this.selector.hover(function() { self._Popcorn.trigger("IriSP.PlayerWidget.MouseOver"); }, 
+                      function() { self._Popcorn.trigger("IriSP.PlayerWidget.MouseOut"); });
 };
 
 /* Update the elasped time div */