]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed #3804 (Multiple Slider Focus Issues)
authorRichard Worth <rdworth@gmail.com>
Thu, 5 Feb 2009 05:25:12 +0000 (05:25 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 5 Feb 2009 05:25:12 +0000 (05:25 +0000)
ui/ui.slider.js

index f30365368ed6e3a045d2ad1296b21b72e127b347..f96767b4913601c616c7cfa136604c9611ed7acb 100644 (file)
@@ -77,7 +77,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
                this.handles.add(this.range).filter("a")
                        .click(function(event) { event.preventDefault(); })
                        .hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); })
-                       .focus(function() { self.handles.removeClass('ui-state-focus'); $(this).addClass('ui-state-focus'); })
+                       .focus(function() { $(".ui-slider .ui-state-focus").removeClass('ui-state-focus'); $(this).addClass('ui-state-focus'); })
                        .blur(function() { $(this).removeClass('ui-state-focus'); });
 
                this.handles.each(function(i) {