diff options
author | Richard Worth <rdworth@gmail.com> | 2008-12-31 04:48:12 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-12-31 04:48:12 +0000 |
commit | 1907c374cf0de9c1787b7db08c5add6194ef3b08 (patch) | |
tree | 4ba67fdbed1061f3c41e14fe501bb05b3bb03112 /ui/ui.slider.js | |
parent | 419da55302d8136321cb2707f4b377b4d180d7ac (diff) | |
download | jquery-ui-1907c374cf0de9c1787b7db08c5add6194ef3b08.tar.gz jquery-ui-1907c374cf0de9c1787b7db08c5add6194ef3b08.zip |
slider: added ui.values in the slide callback for a range
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r-- | ui/ui.slider.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 6c775a104..213607bac 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -262,10 +262,13 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { var handle = this.handles.filter(".ui-state-active"); var index = handle.data("index.ui-slider-handle"); if (newVal != this.values(index)) { + var newValues = this.values(); + newValues[index] = newVal; // A slide can be canceled by returning false from the slide callback var allowed = this._trigger("slide", event, { handle: handle, - value: newVal + value: newVal, + values: newValues }); if (allowed !== false) this.values(index, newVal); |