[richfaces-svn-commits] JBoss Rich Faces SVN: r306 - trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Fri Apr 6 09:54:53 EDT 2007
Author: nbelaevski
Date: 2007-04-06 09:54:53 -0400 (Fri, 06 Apr 2007)
New Revision: 306
Modified:
trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
RFA-315: slider not working in Safari
fixed
Modified: trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-04-06 13:19:25 UTC (rev 305)
+++ trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-04-06 13:54:53 UTC (rev 306)
@@ -204,7 +204,6 @@
},
startDrag: function(event) {
-
window.document.onmouseup = this.eventMouseUp.bindAsEventListener(this);
window.document.onmousemove = this.eventMouseMove.bindAsEventListener(this);
this.editBlur();
@@ -216,7 +215,7 @@
if (this.options.currValue){
this.tip.style.display = "block";
}
- Richfaces.createEvent("mousedown", this.mainTable, "MouseEvents", null).fire();
+ Richfaces.createEvent("mousedown", this.mainTable, null, null).fire();
this.active = true;
var handle = Event.element(event);
var pointer = Event.pointerX(event);
@@ -231,6 +230,7 @@
update: function(event) {
if(this.active) {
+
if(!this.dragging) this.dragging = true;
this.draw(event);
Event.stop(event);
@@ -262,11 +262,11 @@
if(this.active && this.dragging) {
this.active = false;
this.dragging = false;
- Richfaces.createEvent("mouseup", this.mainTable, "MouseEvents", null).fire();
+ Richfaces.createEvent("mouseup", this.mainTable, null, null).fire();
Event.stop(event);
}
if (RichFaces.navigatorType() != "MSIE")
- Richfaces.createEvent("change", this.input, "HTMLEvents", null).fire();
+ Richfaces.createEvent("change", this.input, null, null).fire();
},
fireClickIfNeeded: function(event){
@@ -275,7 +275,7 @@
|| (RichFaces.getOperaVersion()
&& RichFaces.getOperaVersion() < 9.0
&& event.target.tagName.toLowerCase() != "div")) {
- Richfaces.createEvent("click", this.mainTable, "MouseEvents", null).fire();
+ Richfaces.createEvent("click", this.mainTable, null, null).fire();
}
},
More information about the richfaces-svn-commits
mailing list