Author: konstantin.mishin
Date: 2010-07-29 12:13:37 -0400 (Thu, 29 Jul 2010)
New Revision: 18282
Modified:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.js
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml
Log:
RF-8983
Modified:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.js
===================================================================
---
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.js 2010-07-29
15:18:41 UTC (rev 18281)
+++
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/resources/META-INF/resources/inputNumberSlider.js 2010-07-29
16:13:37 UTC (rev 18282)
@@ -31,14 +31,13 @@
step: 5,
init: function (id) {
-
this.range = this.maxValue - this.minValue;
this.id = id;
this.element = jQuery(this.attachToDom());
- this.input = this.element.find(".rf-ins-i");
- this.track = this.element.find(".rf-ins-t");
- this.handle = this.element.find(".rf-ins-h");
- this.tooltip = this.element.find(".rf-ins-tt");
+ this.input = this.element.children(".rf-ins-i");
+ this.track =
this.element.children(".rf-ins-ta").children(".rf-ins-t");
+ this.handle = this.track.children(".rf-ins-h");
+ this.tooltip = this.element.children(".rf-ins-tt");
this.track[0].tabIndex = 0;
this.handle.css("margin-left", this.input.val() * (this.track.width()
- this.handle.width()) / this.range);
@@ -47,8 +46,8 @@
this.input.change(proxy);
this.input.submit(proxy);
this.track.keydown(jQuery.proxy(this.__keydownHandler, this));
-
this.element.find(".rf-ins-db").mousedown(jQuery.proxy(this.__decreaseHandler,
this));
-
this.element.find(".rf-ins-ib").mousedown(jQuery.proxy(this.__increaseHandler,
this));
+
this.element.children(".rf-ins-db").mousedown(jQuery.proxy(this.__decreaseHandler,
this));
+
this.element.children(".rf-ins-ib").mousedown(jQuery.proxy(this.__increaseHandler,
this));
this.track.mousedown(jQuery.proxy(this.__mousedownHandler, this));
},
Modified:
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml
===================================================================
---
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml 2010-07-29
15:18:41 UTC (rev 18281)
+++
root/ui-sandbox/inputs/trunk/inputnumberslider/src/main/templates/inputnumberslider.template.xml 2010-07-29
16:13:37 UTC (rev 18282)
@@ -40,7 +40,7 @@
</cc:interface>
<cc:implementation>
<span id="#{clientId}" class="rf-ins">
- <a class="rf-ins-db" href="#" />
+ <a class="rf-ins-db" href="javascript:void(0);" />
<span class="rf-ins-ta">
<span class="rf-ins-mn">0</span>
<span class="rf-ins-mx">100</span>
@@ -48,7 +48,7 @@
<span class="rf-ins-h" />
</span>
</span>
- <a class="rf-ins-ib" href="#" />
+ <a class="rf-ins-ib" href="javascript:void(0);" />
<input name="#{clientId}" type="text"
class="rf-ins-i" size="3"
value="#{getInputValue(facesContext, component)}" />
<span class="rf-ins-tt">#{getInputValue(facesContext,
component)}</span>
Show replies by date