Modify ↓
Ticket #2523 (closed bug: fixed)
Sliders require child element that isn't generated
| Reported by: | digitalspaghetti | Owned by: | joern |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.2.4 |
| Component: | ui | Version: | 1.2.3 |
| Keywords: | slider UI | Cc: | |
| Blocking: | Blocked by: |
Description
Building the slider tests for the generic test suite, the tests fail due to the lack of a child element that is used as the handle.
The plugin does not auto-generate this handle, however this is required to allow creation of basic sliders.
See http://dev.jquery.com/view/trunk/ui/tests/uiTest.slider.html
Change History
comment:2 Changed 5 years ago by paul
I suggest to do it the following way:
- the script searches for child elements with the class "ui-slider-handle"
- if found, it ignores all handle creation options
- if nothing found, it continues to look at the following options:
handles: [{ start: 0, max: 0, min: 0 }, ..., ...]
- it will create a new handle for every object found in the array in o.handles.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
