Author: F.antonov
Date: 2007-03-14 10:30:41 -0400 (Wed, 14 Mar 2007)
New Revision: 69
Modified:
trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
Fix for bug RFA-291.
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-03-14
14:21:26 UTC (rev 68)
+++
trunk/richfaces/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-03-14
14:30:41 UTC (rev 69)
@@ -1,7 +1,7 @@
if(!Exadel) var Exadel = {};
Exadel.Slider = Class.create();
Exadel.Slider.prototype = {
- initialize: function(handle, track, tip, table, options) {
+ initialize: function(handle, track, tip, table, handleSelectedClass, options) {
var slider = this;
this.handle = $( handle );
this.tip = $( tip );
@@ -15,6 +15,7 @@
this.classes.arrowSelected = "dr-insldr-handler-sel
rich-inslider-handler-selected";
this.classes.temp = this.handle.className;
this.classes.base = " " +
this.trim(this.classes.temp.replace("dr-insldr-handler
rich-inslider-handler",""));
+ this.classes.handleSelected = " " + handleSelectedClass;
this.table = this.findTableForTrack(this.track);
//this.table.onmouseup = this.fireEditEvent.bindAsEventListener(this);
@@ -91,7 +92,7 @@
Event.observe(window, "load",
this.setInitialValue.bindAsEventListener(this)); //FIX RFA-190
//Event.observe($(input), "propertychange",
this.setInitialValue.bindAsEventListener(this));
},
-
+
setInitialValue: function(){
this.setValue(parseFloat(this.options.sliderValue || this.range.start));
this.handle.style.visibility="visible";
@@ -212,7 +213,7 @@
if(Event.isLeftClick(event)) {
if(!this.disabled){
- this.handle.className = this.classes.arrowSelected + this.classes.base;
+ this.handle.className = this.classes.arrowSelected + this.classes.base +
this.classes.handleSelected;
if (this.options.currValue){
this.tip.style.display = "block";
}
@@ -258,7 +259,7 @@
if (this.eventChanged && this.isValueChanged()){
this.eventChanged(event);
}
- this.handle.className = this.classes.arrow + this.classes.base;
+ this.handle.className = this.classes.arrow + this.classes.base;
if(this.active && this.dragging) {
this.active = false;
this.dragging = false;
Show replies by date