r2608 - Merged r2482 to 1.7.2 (fixes #3736 - some handles get stuck when using two or more handles)

r2608 - Merged r2482 to 1.7.2 (fixes #3736 - some handles get stuck when using two or more handles)


Author: rdworth
Date: Tue May 26 03:59:46 2009
New Revision: 2608
Modified:
branches/1.7.2/ (props changed)
branches/1.7.2/tests/visual/accordion/ (props changed)
branches/1.7.2/tests/visual/datepicker/ (props changed)
branches/1.7.2/tests/visual/resizable/ (props changed)
branches/1.7.2/tests/visual/selectable/ (props changed)
branches/1.7.2/tests/visual/slider/ (props changed)
branches/1.7.2/ui/i18n/ui.datepicker-ro.js (props changed)
branches/1.7.2/ui/i18n/ui.datepicker-sq.js (props changed)
branches/1.7.2/ui/i18n/ui.datepicker-uk.js (props changed)
branches/1.7.2/ui/ui.accordion.js (props changed)
branches/1.7.2/ui/ui.datepicker.js (props changed)
branches/1.7.2/ui/ui.droppable.js (props changed)
branches/1.7.2/ui/ui.resizable.js (props changed)
branches/1.7.2/ui/ui.selectable.js (props changed)
branches/1.7.2/ui/ui.slider.js (contents, props changed)
Log:
Merged r2482 to 1.7.2 (fixes #3736 - some handles get stuck when using two
or more handles)
Modified: branches/1.7.2/ui/ui.slider.js
==============================================================================
--- branches/1.7.2/ui/ui.slider.js    (original)
+++ branches/1.7.2/ui/ui.slider.js    Tue May 26 03:59:46 2009
@@ -335,8 +335,10 @@
            var otherVal = this.values(index ? 0 : 1);
-            if ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <=
otherVal))
-                newVal = otherVal;
+            if ((this.options.values.length == 2 && this.options.range === true) &&
+                ((index == 0 && newVal > otherVal) || (index == 1 && newVal <
otherVal))){
+                 newVal = otherVal;
+            }
            if (newVal != this.values(index)) {
                var newValues = this.values();