aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.slider.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-31 14:34:44 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-31 14:34:44 +0000
commit320e7a560de4c80e1163e5e6afe8e7fc8fa49a3e (patch)
tree6bbc735e68903e0fc2ec96b0598f5db5cce2c4a9 /ui/source/ui.slider.js
parent956656bc2a09790dc2ba6f4bea27d288afd61c91 (diff)
downloadjquery-ui-320e7a560de4c80e1163e5e6afe8e7fc8fa49a3e.tar.gz
jquery-ui-320e7a560de4c80e1163e5e6afe8e7fc8fa49a3e.zip
slider: implemented option "noKeyboard" to disable keyboard controls.
Diffstat (limited to 'ui/source/ui.slider.js')
-rw-r--r--ui/source/ui.slider.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/source/ui.slider.js b/ui/source/ui.slider.js
index 5d2d60cde..e18fb4756 100644
--- a/ui/source/ui.slider.js
+++ b/ui/source/ui.slider.js
@@ -111,7 +111,7 @@
.parent()
.bind('focus', function(e) { self.focus(this.firstChild); })
.bind('blur', function(e) { self.blur(this.firstChild); })
- .bind('keydown', function(e) { self.keydown(e.keyCode, this.firstChild); })
+ .bind('keydown', function(e) { if(!self.options.noKeyboard) self.keydown(e.keyCode, this.firstChild); })
;
// Bind the click to the slider itself
@@ -410,7 +410,7 @@
x: Math.round(this.convertValue(x, "x")) || 0,
y: Math.round(this.convertValue(y, "y")) || 0
};
-
+
if (!noPropagation) {
this.propagate('start', null);
this.propagate('stop', null);