Search and Top Navigation
Ticket #3736: 3736.ui.slider.js.patch
File 3736.ui.slider.js.patch, 0.9 KB (added by andrew_, April 19, 2009 10:21PM UTC)
Logic adjustment & patch file fix.
--- C:/Documents and Settings/Andrew/Local Settings/Temp/ui.slider-HEAD.js Sun Apr 19 18:21:38 2009
+++ d:/Subversion/jQuery UI/Trunk/ui/ui.slider.js Sun Apr 19 18:21:04 2009
@@ -336,8 +336,10 @@
var otherVal = this.values(index ? 0 : 1);
- if ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <= otherVal))
+ if ((this.options.values.length < 3 || this.options.range === true) &&
+ ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <= otherVal))){
newVal = otherVal;
+ }
if (newVal != this.values(index)) {
var newValues = this.values();
@@ -348,7 +350,7 @@
value: newVal,
values: newValues
});
- var otherVal = this.values(index ? 0 : 1);
+ //var otherVal = this.values(index ? 0 : 1); << unused?
if (allowed !== false) {
this.values(index, newVal, ( event.type == 'mousedown' && this.options.animate ), true);
}
Download in other formats:
Original Format
File 3736.ui.slider.js.patch, 0.9 KB (added by andrew_, April 19, 2009 10:21PM UTC)
Logic adjustment & patch file fix.
--- C:/Documents and Settings/Andrew/Local Settings/Temp/ui.slider-HEAD.js Sun Apr 19 18:21:38 2009
+++ d:/Subversion/jQuery UI/Trunk/ui/ui.slider.js Sun Apr 19 18:21:04 2009
@@ -336,8 +336,10 @@
var otherVal = this.values(index ? 0 : 1);
- if ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <= otherVal))
+ if ((this.options.values.length < 3 || this.options.range === true) &&
+ ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <= otherVal))){
newVal = otherVal;
+ }
if (newVal != this.values(index)) {
var newValues = this.values();
@@ -348,7 +350,7 @@
value: newVal,
values: newValues
});
- var otherVal = this.values(index ? 0 : 1);
+ //var otherVal = this.values(index ? 0 : 1); << unused?
if (allowed !== false) {
this.values(index, newVal, ( event.type == 'mousedown' && this.options.animate ), true);
}