diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-19 09:19:10 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-19 09:19:10 +0000 |
commit | faec9388e2f9890e33c368b459ab164eda019e62 (patch) | |
tree | 6945fcb97d90930b30221651a4b2d30c14d783e5 /ui | |
parent | f9a77723b666f4d4cc73911be67fd76b478f933b (diff) | |
download | jquery-ui-faec9388e2f9890e33c368b459ab164eda019e62.tar.gz jquery-ui-faec9388e2f9890e33c368b459ab164eda019e62.zip |
slider: use preventDefault on click event on handle instead of returning false (see #3228)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.slider.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index e31e64545..098b6aae9 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -111,7 +111,7 @@ $.widget("ui.slider", { }) .wrap('<a href="#" style="outline:none;border:none;"></a>') .parent() - .bind('click', function() { return false; }) + .bind('click', function(e) { e.preventDefault(); }) .bind('focus', function(e) { self._focus(this.firstChild); }) .bind('blur', function(e) { self._blur(this.firstChild); }) .bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); }) |