src/js/widgets/sliderWidget.js
branchpopcorn-port
changeset 372 33a435f35597
parent 347 9c55d584d3a9
child 469 154c049e0c06
equal deleted inserted replaced
371:3da43513e638 372:33a435f35597
   105 //  this.selector.addClass("Ldt-SliderMaximized");
   105 //  this.selector.addClass("Ldt-SliderMaximized");
   106 };
   106 };
   107 
   107 
   108 /* handles when the mouse leaves the slider */
   108 /* handles when the mouse leaves the slider */
   109 IriSP.SliderWidget.prototype.mouseOutHandler = function(event) {
   109 IriSP.SliderWidget.prototype.mouseOutHandler = function(event) {
   110  
   110 
   111   this.timeOutId = window.setTimeout(IriSP.wrap(this, this.minimizeOnTimeout), 3000);
   111   this.timeOutId = window.setTimeout(IriSP.wrap(this, this.minimizeOnTimeout),
       
   112                                      IriSP.widgetsDefaults.SliderWidget.minimize_period);
   112 };
   113 };
   113 
   114 
   114 IriSP.SliderWidget.prototype.minimizeOnTimeout = function(event) {
   115 IriSP.SliderWidget.prototype.minimizeOnTimeout = function(event) {
   115   this.sliderBackground.animate({"height": "5px"}, 100);
   116   this.sliderBackground.animate({"height": "5px"}, 100);
   116   this.sliderForeground.animate({"height": "5px"}, 100);
   117   this.sliderForeground.animate({"height": "5px"}, 100);