Author: pyaschenko
Date: 2008-03-11 12:07:01 -0400 (Tue, 11 Mar 2008)
New Revision: 6701
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
RF-2268
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
---
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-03-11
15:41:08 UTC (rev 6700)
+++
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-03-11
16:07:01 UTC (rev 6701)
@@ -87,7 +87,6 @@
Event.observe(this.input, "keyup", this.eventEditChange);
Event.observe(this.input, "focus", this.eventEditFocus);
Event.observe(this.input, "blur", this.eventEditBlur);
- Event.observe(document, "mouseout", this.eventWindowMouseOut);
if(this.input.onchange){
this.eventInputOnChange = this.input.onchange.bindAsEventListener(this.input);
this.input.onchange = null;
@@ -234,6 +233,7 @@
this.input.blur();
window.document.onmouseup = this.eventMouseUp.bindAsEventListener(this);
window.document.onmousemove = this.eventMouseMove.bindAsEventListener(this);
+ Event.observe(document, "mouseout", this.eventWindowMouseOut);
this.editBlur();
this.prevMouseDownEvent = event;
@@ -289,6 +289,7 @@
endDrag: function(event) {
window.document.onmouseup = this.prevMouseUp;
window.document.onmousemove = this.prevMouseMove;
+ Event.stopObserving(document, "mouseout", this.eventWindowMouseOut, false);
if (this.options.currValue){
Element.hide(this.tip);
}
Show replies by date